rust/tests/ui/rfcs/rfc-2294-if-let-guard/feature-gate-macro.rs
2025-07-25 23:46:28 +02:00

15 lines
273 B
Rust

// gate-test-if_let_guard
fn main() {
macro_rules! use_expr {
($e:expr) => {
match () {
() if $e => {}
_ => {}
}
}
}
use_expr!(let 0 = 1);
//~^ ERROR no rules expected keyword `let`
}