]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/pretty-print-tts.rs
Auto merge of #106959 - tmiasko:opt-funclets, r=davidtwco
[rust.git] / tests / ui / proc-macro / pretty-print-tts.rs
1 // check-pass
2 // aux-build:test-macros.rs
3 // compile-flags: -Z span-debug
4
5 #![feature(rustc_attrs)]
6
7 #![no_std] // Don't load unnecessary hygiene information from std
8 extern crate std;
9
10 #[macro_use]
11 extern crate test_macros;
12
13 // Tests the pretty-printing behavior of various (unparsed) tokens
14 print_bang_consume!({
15     #![rustc_dummy]
16     let a = "hello".len();
17     matches!(a, 5);
18 });
19
20 fn main() {}