blob: b838be9fb9f2c5121b607455fbd86ce7e750b21f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Proc macros can generate token sequence `$ IDENT`
// without it being recognized as an unknown macro variable.
// check-pass
// aux-build:generate-dollar-ident.rs
extern crate generate_dollar_ident;
use generate_dollar_ident::*;
macro_rules! black_hole {
($($tt:tt)*) => {};
}
black_hole!($var);
dollar_ident!(black_hole);
fn main() {}
|