2015-01-02 19:41:40 -08:00
|
|
|
#![feature(trace_macros)]
|
2014-03-18 23:14:08 +11:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
trace_macros!(); //~ ERROR trace_macros! accepts only `true` or `false`
|
|
|
|
trace_macros!(1); //~ ERROR trace_macros! accepts only `true` or `false`
|
|
|
|
trace_macros!(ident); //~ ERROR trace_macros! accepts only `true` or `false`
|
|
|
|
trace_macros!(for); //~ ERROR trace_macros! accepts only `true` or `false`
|
|
|
|
trace_macros!(true,); //~ ERROR trace_macros! accepts only `true` or `false`
|
|
|
|
trace_macros!(false 1); //~ ERROR trace_macros! accepts only `true` or `false`
|
|
|
|
|
|
|
|
|
|
|
|
// should be fine:
|
|
|
|
macro_rules! expando {
|
|
|
|
($x: ident) => { trace_macros!($x) }
|
|
|
|
}
|
|
|
|
|
|
|
|
expando!(true);
|
|
|
|
}
|