rust/tests/ui/feature-gates/trace_macros-gate.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
470 B
Rust
Raw Normal View History

// Test that the trace_macros feature gate is on.
fn main() {
trace_macros!(); //~ ERROR `trace_macros` is not stable
//~| ERROR trace_macros! accepts only `true` or `false`
trace_macros!(true); //~ ERROR `trace_macros` is not stable
trace_macros!(false); //~ ERROR `trace_macros` is not stable
macro_rules! expando {
2016-05-19 22:28:14 +00:00
($x: ident) => { trace_macros!($x) } //~ ERROR `trace_macros` is not stable
}
expando!(true);
}