aboutsummaryrefslogtreecommitdiff
path: root/syn/tests/features
diff options
context:
space:
mode:
Diffstat (limited to 'syn/tests/features')
-rw-r--r--syn/tests/features/error.rs1
-rw-r--r--syn/tests/features/mod.rs22
2 files changed, 23 insertions, 0 deletions
diff --git a/syn/tests/features/error.rs b/syn/tests/features/error.rs
new file mode 100644
index 0000000..10ac889
--- /dev/null
+++ b/syn/tests/features/error.rs
@@ -0,0 +1 @@
+"Hello! You want: cargo test --release --all-features"
diff --git a/syn/tests/features/mod.rs b/syn/tests/features/mod.rs
new file mode 100644
index 0000000..83fbe13
--- /dev/null
+++ b/syn/tests/features/mod.rs
@@ -0,0 +1,22 @@
+#[allow(unused_macros)]
+macro_rules! hide_from_rustfmt {
+ ($mod:item) => {
+ $mod
+ };
+}
+
+#[cfg(not(all(
+ feature = "derive",
+ feature = "full",
+ feature = "parsing",
+ feature = "printing",
+ feature = "visit",
+ feature = "visit-mut",
+ feature = "fold",
+ feature = "clone-impls",
+ feature = "extra-traits",
+ feature = "proc-macro",
+)))]
+hide_from_rustfmt! {
+ mod error;
+}