]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/block-must-not-have-result-while.stderr
Rollup merge of #62709 - nhynes:test-maplike-fromiter, r=cuviper
[rust.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 |         true
13    |         ^^^^ expected (), found bool
14    |
15    = note: expected type `()`
16               found type `bool`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.