1 error[E0308]: mismatched types
2 --> $DIR/issue-13428.rs:3:13
4 LL | fn foo() -> String {
5 | --- ^^^^^^ expected struct `String`, found `()`
7 | implicitly returns `()` as its body has no tail or `return` expression
9 error[E0308]: mismatched types
10 --> $DIR/issue-13428.rs:11:13
12 LL | fn bar() -> String {
13 | --- ^^^^^^ expected struct `String`, found `()`
15 | implicitly returns `()` as its body has no tail or `return` expression
16 LL | "foobar".to_string()
18 | - help: remove this semicolon
20 error: aborting due to 2 previous errors
22 For more information about this error, try `rustc --explain E0308`.