summaryrefslogtreecommitdiffstats
path: root/src/test/ui/block-result/issue-11714.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/block-result/issue-11714.stderr')
-rw-r--r--src/test/ui/block-result/issue-11714.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/block-result/issue-11714.stderr b/src/test/ui/block-result/issue-11714.stderr
new file mode 100644
index 000000000..5b8d96fd4
--- /dev/null
+++ b/src/test/ui/block-result/issue-11714.stderr
@@ -0,0 +1,14 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-11714.rs:1:14
+ |
+LL | fn blah() -> i32 {
+ | ---- ^^^ expected `i32`, found `()`
+ | |
+ | implicitly returns `()` as its body has no tail or `return` expression
+...
+LL | ;
+ | - help: remove this semicolon
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.