about summary refs log tree commit diff
path: root/tests/ui/type/type-mismatch-multiple.stderr
blob: 50078e5b03a0f3a7b1a45accc990041f99df3a03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0308]: mismatched types
  --> $DIR/type-mismatch-multiple.rs:5:27
   |
LL | fn main() { let a: bool = 1; let b: i32 = true; }
   |                    ----   ^ expected `bool`, found integer
   |                    |
   |                    expected due to this

error[E0308]: mismatched types
  --> $DIR/type-mismatch-multiple.rs:5:43
   |
LL | fn main() { let a: bool = 1; let b: i32 = true; }
   |                                     ---   ^^^^ expected `i32`, found `bool`
   |                                     |
   |                                     expected due to this

error: aborting due to 2 previous errors

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