]>
Commit | Line | Data |
---|---|---|
dc9dc135 XL |
1 | // check-pass |
2 | ||
7cac9316 XL |
3 | trait MyTrait { |
4 | const MY_CONST: &'static str; | |
8bb4bdeb | 5 | } |
7cac9316 XL |
6 | |
7 | macro_rules! my_macro { | |
8 | () => { | |
9 | struct MyStruct; | |
10 | ||
11 | impl MyTrait for MyStruct { | |
12 | const MY_CONST: &'static str = stringify!(abc); | |
13 | } | |
14 | } | |
15 | } | |
16 | ||
17 | my_macro!(); | |
18 | ||
a1dfa0c6 | 19 | fn main() {} |