summaryrefslogtreecommitdiffstats
path: root/src/test/ui/block-result/issue-13428.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/block-result/issue-13428.stderr22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/ui/block-result/issue-13428.stderr b/src/test/ui/block-result/issue-13428.stderr
new file mode 100644
index 000000000..a33448edf
--- /dev/null
+++ b/src/test/ui/block-result/issue-13428.stderr
@@ -0,0 +1,22 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-13428.rs:3:13
+ |
+LL | fn foo() -> String {
+ | --- ^^^^^^ expected struct `String`, found `()`
+ | |
+ | implicitly returns `()` as its body has no tail or `return` expression
+
+error[E0308]: mismatched types
+ --> $DIR/issue-13428.rs:11:13
+ |
+LL | fn bar() -> String {
+ | --- ^^^^^^ expected struct `String`, found `()`
+ | |
+ | implicitly returns `()` as its body has no tail or `return` expression
+LL | "foobar".to_string()
+LL | ;
+ | - help: remove this semicolon
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0308`.