fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
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 | 12 = note: expected type `std::string::String` 13 found type `()` 14 15error[E0308]: mismatched types 16 --> $DIR/consider-removing-last-semi.rs:6:11 17 | 18LL | fn g() -> String { 19 | - ^^^^^^ expected struct `std::string::String`, found () 20 | | 21 | implicitly returns `()` as its body has no tail or `return` expression 22LL | "this won't work".to_string(); 23LL | "removeme".to_string(); 24 | - help: consider removing this semicolon 25 | 26 = note: expected type `std::string::String` 27 found type `()` 28 29error: aborting due to 2 previous errors 30 31For more information about this error, try `rustc --explain E0308`.