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

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

17 lines
186 B
Rust
Raw Normal View History

// check-pass
2018-02-08 23:55:35 +00:00
#![feature(decl_macro)]
2018-02-08 23:55:35 +00:00
#![allow(unused)]
macro m($S:ident, $x:ident) {
$S { $x: 0 }
}
mod foo {
struct S { x: i32 }
fn f() { ::m!(S, x); }
}
fn main() {}