blob: 8a274e775335976b0f84e4fcf7cd9fc0bbdb466a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//@ 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");
}
|