c7cd55f7c5
Co-authored-by: Michael Goulet <michael@errs.io> Co-authored-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
15 lines
235 B
Rust
15 lines
235 B
Rust
//@ 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");
|
|
}
|