mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-19 03:54:40 +00:00
16 lines
617 B
Rust
16 lines
617 B
Rust
fn main() {
|
|
'l0 while false {} //~ ERROR labeled expression must be followed by `:`
|
|
'l1 for _ in 0..1 {} //~ ERROR labeled expression must be followed by `:`
|
|
'l2 loop {} //~ ERROR labeled expression must be followed by `:`
|
|
'l3 {} //~ ERROR labeled expression must be followed by `:`
|
|
'l4 0; //~ ERROR labeled expression must be followed by `:`
|
|
//~^ ERROR expected `while`, `for`, `loop` or `{`
|
|
|
|
macro_rules! m {
|
|
($b:block) => {
|
|
'l5 $b; //~ ERROR cannot use a `block` macro fragment here
|
|
}
|
|
}
|
|
m!({}); //~ ERROR labeled expression must be followed by `:`
|
|
}
|