]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/issue-13428.stderr
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.git] / src / test / ui / block-result / issue-13428.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-13428.rs:3:13
3    |
4 LL | fn foo() -> String {
5    |    ---      ^^^^^^ expected struct `String`, found `()`
6    |    |
7    |    implicitly returns `()` as its body has no tail or `return` expression
8 ...
9 LL |     ;
10    |     - help: consider removing this semicolon
11
12 error[E0308]: mismatched types
13   --> $DIR/issue-13428.rs:11:13
14    |
15 LL | fn bar() -> String {
16    |    ---      ^^^^^^ expected struct `String`, found `()`
17    |    |
18    |    implicitly returns `()` as its body has no tail or `return` expression
19 LL |     "foobar".to_string()
20 LL |     ;
21    |     - help: consider removing this semicolon
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0308`.