]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/issue-50061.rs
Rollup merge of #106978 - mejrs:mir_build3, r=davidtwco
[rust.git] / tests / ui / proc-macro / issue-50061.rs
1 // run-pass
2
3 #![allow(path_statements)]
4 // aux-build:issue-50061.rs
5
6 #![feature(decl_macro)]
7
8 extern crate issue_50061;
9
10 macro inner(any_token $v: tt) {
11     $v
12 }
13
14 macro outer($v: tt) {
15     inner!(any_token $v)
16 }
17
18 #[issue_50061::check]
19 fn main() {
20     //! this doc comment forces roundtrip through a string
21     let checkit = 0;
22     outer!(checkit);
23 }