os-rust/tests/ui/block-result/block-must-not-have-result-while.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
585 B
Text
Raw Permalink Normal View History

warning: denote infinite loops with `loop { ... }`
--> $DIR/block-must-not-have-result-while.rs:2:5
|
LL | while true {
| ^^^^^^^^^^ help: use `loop`
|
= note: `#[warn(while_true)]` on by default
2017-06-23 17:43:35 -07:00
error[E0308]: mismatched types
2018-12-25 08:56:47 -07:00
--> $DIR/block-must-not-have-result-while.rs:3:9
2017-06-23 17:43:35 -07:00
|
2020-04-24 00:22:50 +02:00
LL | / while true {
LL | | true
| | ^^^^ expected `()`, found `bool`
LL | |
LL | | }
| |_____- expected this to be `()`
2017-06-23 17:43:35 -07:00
error: aborting due to 1 previous error; 1 warning emitted
2017-06-23 17:43:35 -07:00
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0308`.