]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/log_syntax-trace_macros-macro-locations.rs
Rollup merge of #106783 - WaffleLapkin:break-my-ident, r=wesleywiser
[rust.git] / tests / ui / macros / log_syntax-trace_macros-macro-locations.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 #![feature(trace_macros, log_syntax)]
5
6 // make sure these macros can be used as in the various places that
7 // macros can occur.
8
9 // items
10 trace_macros!(false);
11 log_syntax!();
12
13 fn main() {
14
15     // statements
16     trace_macros!(false);
17     log_syntax!();
18
19     // expressions
20     (trace_macros!(false),
21      log_syntax!());
22 }