]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/log_syntax-trace_macros-macro-locations.rs
95a5f1003b6e356f8b39dd57e08bd7aac77513af
[rust.git] / src / test / run-pass / log_syntax-trace_macros-macro-locations.rs
1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #![feature(trace_macros, log_syntax)]
12
13 // make sure these macros can be used as in the various places that
14 // macros can occur.
15
16 // items
17 trace_macros!(false);
18 log_syntax!();
19
20 fn main() {
21
22     // statements
23     trace_macros!(false);
24     log_syntax!();
25
26     // expressions
27     (trace_macros!(false),
28      log_syntax!());
29 }