summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/log_syntax-trace_macros-macro-locations.rs
blob: 2d78ae6f908338588264db63f74936f747a2acbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// run-pass
// pretty-expanded FIXME #23616

#![feature(trace_macros, log_syntax)]

// make sure these macros can be used as in the various places that
// macros can occur.

// items
trace_macros!(false);
log_syntax!();

fn main() {

    // statements
    trace_macros!(false);
    log_syntax!();

    // expressions
    (trace_macros!(false),
     log_syntax!());
}