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

31 lines
1019 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
| | - 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
| | - 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)