2017-06-23 19:43:35 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/consider-removing-last-semi.rs:11:18
|
|
|
|
|
|
|
|
|
11 | fn f() -> String { //~ ERROR mismatched types
|
|
|
|
| __________________^
|
|
|
|
12 | | 0u8;
|
|
|
|
13 | | "bla".to_string(); //~ HELP consider removing this semicolon
|
2017-06-24 03:09:57 -05:00
|
|
|
| | - help: consider removing this semicolon
|
2017-06-23 19:43:35 -05:00
|
|
|
14 | | }
|
|
|
|
| |_^ expected struct `std::string::String`, found ()
|
|
|
|
|
|
|
|
|
= note: expected type `std::string::String`
|
|
|
|
found type `()`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/consider-removing-last-semi.rs:16:18
|
|
|
|
|
|
|
|
|
16 | fn g() -> String { //~ ERROR mismatched types
|
|
|
|
| __________________^
|
|
|
|
17 | | "this won't work".to_string();
|
|
|
|
18 | | "removeme".to_string(); //~ HELP consider removing this semicolon
|
2017-06-24 03:09:57 -05:00
|
|
|
| | - help: consider removing this semicolon
|
2017-06-23 19:43:35 -05:00
|
|
|
19 | | }
|
|
|
|
| |_^ expected struct `std::string::String`, found ()
|
|
|
|
|
|
|
|
|
= note: expected type `std::string::String`
|
|
|
|
found type `()`
|
|
|
|
|
|
|
|
error: aborting due to previous error(s)
|
|
|
|
|