Sign in
android
/
toolchain
/
rustc
/
2f3fdfeb95384b9046ea35b3532e23c652eca660
/
.
/
src
/
test
/
ui
/
parser
/
issue-70050-ntliteral-accepts-negated-lit.rs
blob: aca9d9eb0a5b4c3e837897a45100b238bf8334f1 [
file
] [
log
] [
blame
]
// check-pass
macro_rules
!
foo
{
(
$a
:
literal
)
=>
{
bar
!(
$a
)
};
}
macro_rules
!
bar
{
(
$b
:
literal
)
=>
{};
}
fn
main
()
{
foo
!(-
2
);
bar
!(-
2
);
}