summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/while-type-error.stderr
blob: 529cbff0563bd63114263a6758a1b37ce3898ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0308]: mismatched types
  --> $DIR/while-type-error.rs:3:19
   |
LL | fn main() { while main { } }
   |                   ^^^^ expected `bool`, found fn item
   |
   = note: expected type `bool`
           found fn item `fn() {main}`

error: aborting due to previous error

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