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;
|
2017-12-10 14:29:24 -06:00
|
|
|
13 | | "bla".to_string();
|
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();
|
2017-12-10 14:29:24 -06:00
|
|
|
18 | | "removeme".to_string();
|
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 `()`
|
|
|
|
|
2017-07-02 08:09:09 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2017-06-23 19:43:35 -05:00
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0308"
|