diff options
Diffstat (limited to 'tests/ui/block-result/block-must-not-have-result-res.stderr')
-rw-r--r-- | tests/ui/block-result/block-must-not-have-result-res.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/block-result/block-must-not-have-result-res.stderr b/tests/ui/block-result/block-must-not-have-result-res.stderr new file mode 100644 index 000000000..0080d06dd --- /dev/null +++ b/tests/ui/block-result/block-must-not-have-result-res.stderr @@ -0,0 +1,11 @@ +error[E0308]: mismatched types + --> $DIR/block-must-not-have-result-res.rs:5:9 + | +LL | fn drop(&mut self) { + | - expected `()` because of default return type +LL | true + | ^^^^ expected `()`, found `bool` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0308`. |