]>
Commit | Line | Data |
---|---|---|
83c7162d | 1 | // Copyright 2018 The Rust Project Developers. See the COPYRIGHT |
223e47cc LB |
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 | ||
83c7162d | 11 | // aux-build:issue-50061.rs |
3b2f2976 | 12 | // ignore-stage1 |
1a4d82fc | 13 | |
8faf50e0 | 14 | #![feature(use_extern_macros, proc_macro_path_invoc, decl_macro)] |
476ff2be | 15 | |
83c7162d | 16 | extern crate issue_50061; |
9e0c209e | 17 | |
83c7162d XL |
18 | macro inner(any_token $v: tt) { |
19 | $v | |
20 | } | |
21 | ||
22 | macro outer($v: tt) { | |
23 | inner!(any_token $v) | |
24 | } | |
25 | ||
26 | #[issue_50061::check] | |
27 | fn main() { | |
28 | //! this doc comment forces roundtrip through a string | |
29 | let checkit = 0; | |
30 | outer!(checkit); | |
31 | } |