rust/tests/ui/parser/missing-semicolon.rs

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

9 lines
210 B
Rust
Raw Normal View History

2019-12-03 17:47:44 +00:00
macro_rules! m {
($($e1:expr),*; $($e2:expr),*) => {
2021-08-02 00:55:48 +00:00
$( let x = $e1 )*; //~ ERROR expected one of `.`, `;`, `?`, `else`, or
2019-12-03 17:47:44 +00:00
$( println!("{}", $e2) )*;
}
}
fn main() { m!(0, 0; 0, 0); }