summary refs log tree commit diff
path: root/src/test/ui/block-result/block-must-not-have-result-while.stderr
blob: 638ce03cb36630755c51c53dc0b25887b119fef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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

error[E0308]: mismatched types
  --> $DIR/block-must-not-have-result-while.rs:3:9
   |
LL |         true
   |         ^^^^ expected `()`, found `bool`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.