mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +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; };
|
|
}
|