diff options
Diffstat (limited to 'tests/ui/type/type-mismatch-multiple.rs')
-rw-r--r-- | tests/ui/type/type-mismatch-multiple.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/type/type-mismatch-multiple.rs b/tests/ui/type/type-mismatch-multiple.rs new file mode 100644 index 000000000..55d6ceef1 --- /dev/null +++ b/tests/ui/type/type-mismatch-multiple.rs @@ -0,0 +1,7 @@ +// Checking that the compiler reports multiple type errors at once + +fn main() { let a: bool = 1; let b: i32 = true; } +//~^ ERROR mismatched types +//~| expected `bool`, found integer +//~| ERROR mismatched types +//~| expected `i32`, found `bool` |