rust/tests/ui/macros/macro-in-expression-context-2.rs

9 lines
157 B
Rust
Raw Normal View History

macro_rules! empty { () => () }
fn main() {
match 42 {
_ => { empty!() }
2018-11-30 09:41:26 +01:00
//~^ ERROR macro expansion ends with an incomplete expression
};
}