summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/none-delim-lookahead.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/macros/none-delim-lookahead.rs')
-rw-r--r--src/test/ui/macros/none-delim-lookahead.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/macros/none-delim-lookahead.rs b/src/test/ui/macros/none-delim-lookahead.rs
new file mode 100644
index 000000000..bf4fddea1
--- /dev/null
+++ b/src/test/ui/macros/none-delim-lookahead.rs
@@ -0,0 +1,15 @@
+// check-pass
+
+macro_rules! make_struct {
+ ($name:ident) => {
+ #[derive(Debug)]
+ struct Foo {
+ #[cfg(not(FALSE))]
+ field: fn($name: bool)
+ }
+ }
+}
+
+make_struct!(param_name);
+
+fn main() {}