1 error[E0308]: mismatched types
2 --> $DIR/consider-removing-last-semi.rs:11:18
4 LL | fn f() -> String { //~ ERROR mismatched types
7 LL | | "bla".to_string();
8 | | - help: consider removing this semicolon
10 | |_^ expected struct `std::string::String`, found ()
12 = note: expected type `std::string::String`
15 error[E0308]: mismatched types
16 --> $DIR/consider-removing-last-semi.rs:16:18
18 LL | fn g() -> String { //~ ERROR mismatched types
20 LL | | "this won't work".to_string();
21 LL | | "removeme".to_string();
22 | | - help: consider removing this semicolon
24 | |_^ expected struct `std::string::String`, found ()
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`.