summaryrefslogtreecommitdiffstats
path: root/src/test/ui/block-result/issue-13428.stderr
blob: 2b386d10c53c42c3a70087585b3e6c17a0a8f0d1 (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 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 to return this value

error: aborting due to 2 previous errors

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