diff options
Diffstat (limited to 'tests/ui/proc-macro/meta-delim.rs')
-rw-r--r-- | tests/ui/proc-macro/meta-delim.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/meta-delim.rs b/tests/ui/proc-macro/meta-delim.rs new file mode 100644 index 000000000..964291bc6 --- /dev/null +++ b/tests/ui/proc-macro/meta-delim.rs @@ -0,0 +1,12 @@ +// aux-build:meta-delim.rs +// edition:2018 +// run-pass + +// Tests that we can properly deserialize a macro with strange delimiters +// See https://github.com/rust-lang/rust/pull/73569#issuecomment-650860457 + +extern crate meta_delim; + +fn main() { + assert_eq!("a bunch of idents", meta_delim::meta_delim!(a bunch of idents)); +} |