fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0308]: mismatched types 2 --> $DIR/consider-removing-last-semi.rs:1:11 3 | 4LL | fn f() -> String { 5 | - ^^^^^^ expected struct `std::string::String`, found `()` 6 | | 7 | implicitly returns `()` as its body has no tail or `return` expression 8LL | 0u8; 9LL | "bla".to_string(); 10 | - help: consider removing this semicolon 11 12error[E0308]: mismatched types 13 --> $DIR/consider-removing-last-semi.rs:6:11 14 | 15LL | fn g() -> String { 16 | - ^^^^^^ expected struct `std::string::String`, found `()` 17 | | 18 | implicitly returns `()` as its body has no tail or `return` expression 19LL | "this won't work".to_string(); 20LL | "removeme".to_string(); 21 | - help: consider removing this semicolon 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0308`.