rustc/tests/ui/underscore-ident-matcher.rs
2025-01-11 15:57:26 +01:00

10 lines
158 B
Rust

macro_rules! identity {
($i: ident) => (
$i
)
}
fn main() {
let identity!(_) = 10; //~ ERROR no rules expected reserved identifier `_`
}