Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
tests
/
ui
/
hygiene
/
issue-47311.rs
blob: c2b35722bd86157e89d40beead48bea122d730e9 [
file
]
//@ edition:2015
//@ check-pass
#![
feature
(
decl_macro
)]
#![
allow
(
unused
)]
macro m
(
$S
:
ident
,
$x
:
ident
)
{
$S
{
$x
:
0
}
}
mod
foo
{
struct
S
{
x
:
i32
}
fn
f
()
{
::
m
!(
S
,
x
);
}
}
fn
main
()
{}