Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
inline-const
/
macro-with-const.rs
blob: ba75a28f7362c88a50524d4b5d32722b456486c5 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
macro_rules
!
exp
{
(
const
$n
:
expr
)
=>
{
$n
};
}
macro_rules
!
stmt
{
(
exp $e
:
expr
)
=>
{
$e
};
(
exp $
(
$t
:
tt
)+)
=>
{
exp
!(
$
(
$t
)+)
};
}
fn
main
()
{
stmt
!(
exp
const
1
);
}