diff options
Diffstat (limited to 'tests/ui/typeck/output-type-mismatch.stderr')
-rw-r--r-- | tests/ui/typeck/output-type-mismatch.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/typeck/output-type-mismatch.stderr b/tests/ui/typeck/output-type-mismatch.stderr new file mode 100644 index 000000000..4507a4df6 --- /dev/null +++ b/tests/ui/typeck/output-type-mismatch.stderr @@ -0,0 +1,11 @@ +error[E0308]: mismatched types + --> $DIR/output-type-mismatch.rs:5:31 + | +LL | fn main() { let i: isize; i = f(); } + | ----- ^^^ expected `isize`, found `()` + | | + | expected due to this type + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0308`. |