]> git.lizzy.rs Git - rust.git/blob - src/test/ui/trace_macros-format.rs
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / trace_macros-format.rs
1 #![feature(trace_macros)]
2
3 fn main() {
4     trace_macros!(); //~ ERROR trace_macros! accepts only `true` or `false`
5     trace_macros!(1); //~ ERROR trace_macros! accepts only `true` or `false`
6     trace_macros!(ident); //~ ERROR trace_macros! accepts only `true` or `false`
7     trace_macros!(for); //~ ERROR trace_macros! accepts only `true` or `false`
8     trace_macros!(true,); //~ ERROR trace_macros! accepts only `true` or `false`
9     trace_macros!(false 1); //~ ERROR trace_macros! accepts only `true` or `false`
10
11
12     // should be fine:
13     macro_rules! expando {
14         ($x: ident) => { trace_macros!($x) }
15     }
16
17     expando!(true);
18 }