summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/while-type-error.stderr
blob: b67ec561531fe23fa5b6c7d6d35d470e208e2773 (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 1 previous error

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