]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/while-type-error.rs:3:19 |
8faf50e0 | 3 | | |
b7449926 | 4 | LL | fn main() { while main { } } |
60c5eb7d | 5 | | ^^^^ expected `bool`, found fn item |
8faf50e0 XL |
6 | | |
7 | = note: expected type `bool` | |
60c5eb7d | 8 | found fn item `fn() {main}` |
8faf50e0 XL |
9 | |
10 | error: aborting due to previous error | |
11 | ||
12 | For more information about this error, try `rustc --explain E0308`. |