summaryrefslogtreecommitdiffstats
path: root/tests/ui/block-result/issue-13428.stderr
blob: c119b69da2294e1b259dd993581be77d23c69402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error[E0308]: mismatched types
  --> $DIR/issue-13428.rs:3:13
   |
LL | fn foo() -> String {
   |    ---      ^^^^^^ expected `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 `String`, found `()`
   |    |
   |    implicitly returns `()` as its body has no tail or `return` expression
LL |     "foobar".to_string()
LL |     ;
   |     - help: remove this semicolon to return this value

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.