1 error[E0308]: mismatched types
2 --> $DIR/consider-removing-last-semi.rs:1:11
4 LL | fn f() -> String {
5 | - ^^^^^^ expected struct `std::string::String`, found ()
7 | this function's body doesn't return
9 LL | "bla".to_string();
10 | - help: consider removing this semicolon
12 = note: expected type `std::string::String`
15 error[E0308]: mismatched types
16 --> $DIR/consider-removing-last-semi.rs:6:11
18 LL | fn g() -> String {
19 | - ^^^^^^ expected struct `std::string::String`, found ()
21 | this function's body doesn't return
22 LL | "this won't work".to_string();
23 LL | "removeme".to_string();
24 | - help: consider removing this semicolon
26 = note: expected type `std::string::String`
29 error: aborting due to 2 previous errors
31 For more information about this error, try `rustc --explain E0308`.