]> git.lizzy.rs Git - rust.git/blob - tests/ui/never_type/issue-52443.rs
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / ui / never_type / issue-52443.rs
1 fn main() {
2     [(); & { loop { continue } } ]; //~ ERROR mismatched types
3
4     [(); loop { break }]; //~ ERROR mismatched types
5
6     [(); {while true {break}; 0}];
7     //~^ WARN denote infinite loops with
8
9     [(); { for _ in 0usize.. {}; 0}];
10     //~^ ERROR `for` is not allowed in a `const`
11     //~| ERROR cannot convert
12     //~| ERROR mutable references
13     //~| ERROR cannot call
14 }