mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 12:18:33 +00:00
12 lines
205 B
Rust
12 lines
205 B
Rust
![]() |
//@ compile-flags: -Zunpretty=expanded
|
||
|
//@ check-pass
|
||
|
|
||
|
macro_rules! expr {
|
||
|
($e:expr) => { $e };
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let _ = expr!(1 + 1) else { return; };
|
||
|
let _ = expr!(loop {}) else { return; };
|
||
|
}
|