fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
497 B17 linesraw
1warning: denote infinite loops with `loop { ... }`
2  --> $DIR/block-must-not-have-result-while.rs:2:5
3   |
4LL |     while true {
5   |     ^^^^^^^^^^ help: use `loop`
6   |
7   = note: `#[warn(while_true)]` on by default
8
9error[E0308]: mismatched types
10  --> $DIR/block-must-not-have-result-while.rs:3:9
11   |
12LL |         true
13   |         ^^^^ expected `()`, found `bool`
14
15error: aborting due to previous error; 1 warning emitted
16
17For more information about this error, try `rustc --explain E0308`.