Sign in
◑
Theme
rust
/
rust
/
8ae423e5e8db47b8233ad657b8d84247f94de179
/
.
/
tests
/
ui
/
macros
/
expr_2021.rs
blob: 8a274e775335976b0f84e4fcf7cd9fc0bbdb466a [
file
]
//@ check-pass
//@ edition: 2015
// Ensures expr_2021 fragment specifier is accepted in old editions
macro_rules
!
my_macro
{
(
$x
:
expr_2021
)
=>
{
println
!(
"Hello, {}!"
,
$x
);
};
}
fn
main
()
{
my_macro
!(
"world"
);
}