rust/tests/ui/hygiene/issue-47312.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
235 B
Rust
Raw Normal View History

//@ check-pass
2018-02-09 00:26:33 +00:00
#![feature(decl_macro)]
2018-02-09 00:26:33 +00:00
#![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() {}