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