blob: 3b5624216588f6e1c7cb5ebcf8bd7753de99ac32 [file] [log] [blame] [edit]
//@ edition:2015
//@ check-pass
#![feature(decl_macro)]
#![allow(unused)]
mod foo {
pub macro m($s:tt, $i:tt) {
$s.$i
}
}
mod bar {
struct S(i32);
fn f() {
let s = S(0);
::foo::m!(s, 0);
}
}
fn main() {}