mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
15 lines
387 B
Rust
15 lines
387 B
Rust
fn main() {
|
|
[(); & { loop { continue } } ]; //~ ERROR mismatched types
|
|
|
|
[(); loop { break }]; //~ ERROR mismatched types
|
|
|
|
[(); {while true {break}; 0}];
|
|
//~^ WARN denote infinite loops with
|
|
|
|
[(); { for _ in 0usize.. {}; 0}];
|
|
//~^ ERROR `for` is not allowed in a `const`
|
|
//~| ERROR cannot convert
|
|
//~| ERROR mutable references
|
|
//~| ERROR cannot call
|
|
}
|