]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-mismatch-multiple.stderr
8f6b23ea091a23023f787e5ac8658055e19d98a0
[rust.git] / src / test / ui / type / type-mismatch-multiple.stderr
1 error[E0308]: mismatched types
2   --> $DIR/type-mismatch-multiple.rs:3:27
3    |
4 LL | fn main() { let a: bool = 1; let b: i32 = true; }
5    |                           ^ expected bool, found integer
6    |
7    = note: expected type `bool`
8               found type `{integer}`
9
10 error[E0308]: mismatched types
11   --> $DIR/type-mismatch-multiple.rs:3:43
12    |
13 LL | fn main() { let a: bool = 1; let b: i32 = true; }
14    |                                           ^^^^ expected i32, found bool
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0308`.