fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/consider-removing-last-semi.rs:3:15 3 | 4LL | pub fn f() -> String { 5 | - ^^^^^^ expected `String`, found `()` 6 | | 7 | implicitly returns `()` as its body has no tail or `return` expression 8LL | 0u8; 9LL | "bla".to_string(); 10 | - help: remove this semicolon to return this value 11 12error[E0308]: mismatched types 13 --> $DIR/consider-removing-last-semi.rs:8:15 14 | 15LL | pub fn g() -> String { 16 | - ^^^^^^ expected `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: remove this semicolon to return this value 22 23error[E0308]: mismatched types 24 --> $DIR/consider-removing-last-semi.rs:13:25 25 | 26LL | pub fn macro_tests() -> u32 { 27 | ----------- ^^^ expected `u32`, found `()` 28 | | 29 | implicitly returns `()` as its body has no tail or `return` expression 30... 31LL | mac!(); 32 | - help: remove this semicolon to return this value 33 34error: aborting due to 3 previous errors 35 36For more information about this error, try `rustc --explain E0308`.