Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
parser
/
issues
/
issue-70050-ntliteral-accepts-negated-lit.rs
blob: 5927875a20f3593c1ab82eada2b70eec7af5a3c4 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
macro_rules
!
foo
{
(
$a
:
literal
)
=>
{
bar
!(
$a
)
};
}
macro_rules
!
bar
{
(
$b
:
literal
)
=>
{};
}
fn
main
()
{
foo
!(-
2
);
bar
!(-
2
);
}