mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 05:04:23 +00:00
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");
|
|
}
|