]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/type-mismatch-multiple.rs:3:27 |
b7449926 XL |
3 | | |
4 | LL | fn main() { let a: bool = 1; let b: i32 = true; } | |
60c5eb7d XL |
5 | | ---- ^ expected `bool`, found integer |
6 | | | | |
7 | | expected due to this | |
b7449926 XL |
8 | |
9 | error[E0308]: mismatched types | |
0731742a | 10 | --> $DIR/type-mismatch-multiple.rs:3:43 |
b7449926 XL |
11 | | |
12 | LL | fn main() { let a: bool = 1; let b: i32 = true; } | |
60c5eb7d XL |
13 | | --- ^^^^ expected `i32`, found `bool` |
14 | | | | |
15 | | expected due to this | |
b7449926 XL |
16 | |
17 | error: aborting due to 2 previous errors | |
18 | ||
19 | For more information about this error, try `rustc --explain E0308`. |