diff options
Diffstat (limited to 'tests/ui/fn/fn-bad-block-type.stderr')
-rw-r--r-- | tests/ui/fn/fn-bad-block-type.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/fn/fn-bad-block-type.stderr b/tests/ui/fn/fn-bad-block-type.stderr new file mode 100644 index 000000000..13ebfd1e2 --- /dev/null +++ b/tests/ui/fn/fn-bad-block-type.stderr @@ -0,0 +1,11 @@ +error[E0308]: mismatched types + --> $DIR/fn-bad-block-type.rs:3:19 + | +LL | fn f() -> isize { true } + | ----- ^^^^ expected `isize`, found `bool` + | | + | expected `isize` because of return type + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0308`. |