]> git.proxmox.com Git - rustc.git/blob - src/test/ui/block-result/block-must-not-have-result-while.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / block-result / block-must-not-have-result-while.stderr
1 warning: denote infinite loops with `loop { ... }`
2 --> $DIR/block-must-not-have-result-while.rs:2:5
3 |
4 LL | while true {
5 | ^^^^^^^^^^ help: use `loop`
6 |
7 = note: `#[warn(while_true)]` on by default
8
9 error[E0308]: mismatched types
10 --> $DIR/block-must-not-have-result-while.rs:3:9
11 |
12 LL | / while true {
13 LL | | true
14 | | ^^^^ expected `()`, found `bool`
15 LL | |
16 LL | | }
17 | |_____- expected this to be `()`
18
19 error: aborting due to previous error; 1 warning emitted
20
21 For more information about this error, try `rustc --explain E0308`.