]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/issue-80760-empty-stmt.rs
Rollup merge of #106591 - Ezrashaw:attempted-integer-identifer, r=Estebank
[rust.git] / tests / ui / proc-macro / issue-80760-empty-stmt.rs
1 // check-pass
2 // aux-build:test-macros.rs
3 // compile-flags: -Z span-debug
4
5 #![no_std] // Don't load unnecessary hygiene information from std
6 extern crate std;
7
8 #[macro_use]
9 extern crate test_macros;
10
11 macro_rules! empty_stmt {
12     ($s:stmt) => {
13         print_bang!($s);
14
15         // Currently, all attributes are ignored
16         // on an empty statement
17         #[print_attr]
18         #[rustc_dummy(first)]
19         #[rustc_dummy(second)]
20         $s
21     }
22 }
23
24 fn main() {
25     empty_stmt!(;);
26 }