Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
run-pass
/
hygiene
/
issue-47312.rs
blob: 88e7a028f92f2a91ea091d20b0b7e00ce1d8079d [
file
] [
log
] [
blame
]
// run-pass
// ignore-pretty pretty-printing is unhygienic
#![
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
()
{}