diff options
Diffstat (limited to 'src/test/ui/type/type-mismatch-multiple.stderr')
-rw-r--r-- | src/test/ui/type/type-mismatch-multiple.stderr | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/type/type-mismatch-multiple.stderr b/src/test/ui/type/type-mismatch-multiple.stderr new file mode 100644 index 000000000..2e8654d31 --- /dev/null +++ b/src/test/ui/type/type-mismatch-multiple.stderr @@ -0,0 +1,19 @@ +error[E0308]: mismatched types + --> $DIR/type-mismatch-multiple.rs:3: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:3: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`. |