rust/src/test/ui/block-result/consider-removing-last-semi.stderr

32 lines
1012 B
Plaintext
Raw Normal View History

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-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-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 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"