mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
15 lines
273 B
Rust
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`
|
|
}
|