summaryrefslogtreecommitdiff
path: root/src/test/ui/type/type-mismatch-multiple.rs
blob: 1904ccf5d59451ed7efe8e8c76aa20e314a3c1ce (plain)
1
2
3
4
5
6
7
8
9
10
// Checking that the compiler reports multiple type errors at once

fn main() { let a: bool = 1; let b: i32 = true; }
//~^ ERROR mismatched types
//~| expected type `bool`
//~| found type `{integer}`
//~| expected bool, found integer
//~| ERROR mismatched types
//~| expected i32, found bool