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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
157 B
Rust
Raw Normal View History

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