2018-07-20 13:59:00 +00:00
|
|
|
fn main() {
|
|
|
|
[(); & { loop { continue } } ]; //~ ERROR mismatched types
|
2020-06-26 00:43:48 +00:00
|
|
|
|
2018-07-20 13:59:00 +00:00
|
|
|
[(); loop { break }]; //~ ERROR mismatched types
|
2020-06-26 00:43:48 +00:00
|
|
|
|
2019-07-01 16:26:36 +00:00
|
|
|
[(); {while true {break}; 0}];
|
2020-06-26 00:43:48 +00:00
|
|
|
//~^ WARN denote infinite loops with
|
|
|
|
|
2019-07-01 16:26:36 +00:00
|
|
|
[(); { for _ in 0usize.. {}; 0}];
|
2020-03-14 14:30:35 +00:00
|
|
|
//~^ ERROR `for` is not allowed in a `const`
|
2022-09-10 07:07:49 +00:00
|
|
|
//~| ERROR cannot convert
|
|
|
|
//~| ERROR mutable references
|
|
|
|
//~| ERROR cannot call
|
2018-07-20 13:59:00 +00:00
|
|
|
}
|