]> git.lizzy.rs Git - rust.git/blob - src/test/ui/trace_macros-gate.rs
Rollup merge of #66472 - GuillaumeGomez:show-coverage-json, r=ollie27
[rust.git] / src / test / ui / trace_macros-gate.rs
1 // Test that the trace_macros feature gate is on.
2
3 fn main() {
4     trace_macros!(); //~ ERROR `trace_macros` is not stable
5                      //~| ERROR trace_macros! accepts only `true` or `false`
6     trace_macros!(true); //~ ERROR `trace_macros` is not stable
7     trace_macros!(false); //~ ERROR `trace_macros` is not stable
8
9     macro_rules! expando {
10         ($x: ident) => { trace_macros!($x) } //~ ERROR `trace_macros` is not stable
11     }
12
13     expando!(true);
14 }