2019-06-12 18:18:32 +03:00
|
|
|
//@ check-pass
|
|
|
|
|
|
2017-05-25 17:43:25 -04:00
|
|
|
trait MyTrait {
|
|
|
|
|
const MY_CONST: &'static str;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro_rules! my_macro {
|
|
|
|
|
() => {
|
|
|
|
|
struct MyStruct;
|
|
|
|
|
|
|
|
|
|
impl MyTrait for MyStruct {
|
|
|
|
|
const MY_CONST: &'static str = stringify!(abc);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
my_macro!();
|
|
|
|
|
|
2018-10-31 13:08:01 +01:00
|
|
|
fn main() {}
|