summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/pretty-print-tts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/proc-macro/pretty-print-tts.rs')
-rw-r--r--src/test/ui/proc-macro/pretty-print-tts.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/pretty-print-tts.rs b/src/test/ui/proc-macro/pretty-print-tts.rs
new file mode 100644
index 000000000..ffe2a7415
--- /dev/null
+++ b/src/test/ui/proc-macro/pretty-print-tts.rs
@@ -0,0 +1,20 @@
+// check-pass
+// aux-build:test-macros.rs
+// compile-flags: -Z span-debug
+
+#![feature(rustc_attrs)]
+
+#![no_std] // Don't load unnecessary hygiene information from std
+extern crate std;
+
+#[macro_use]
+extern crate test_macros;
+
+// Tests the pretty-printing behavior of various (unparsed) tokens
+print_bang_consume!({
+ #![rustc_dummy]
+ let a = "hello".len();
+ matches!(a, 5);
+});
+
+fn main() {}