fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-13428.rs:3:13 3 | 4LL | fn foo() -> String { 5 | --- ^^^^^^ expected `String`, found `()` 6 | | 7 | implicitly returns `()` as its body has no tail or `return` expression 8 9error[E0308]: mismatched types 10 --> $DIR/issue-13428.rs:11:13 11 | 12LL | fn bar() -> String { 13 | --- ^^^^^^ expected `String`, found `()` 14 | | 15 | implicitly returns `()` as its body has no tail or `return` expression 16LL | "foobar".to_string() 17LL | ; 18 | - help: remove this semicolon to return this value 19 20error: aborting due to 2 previous errors 21 22For more information about this error, try `rustc --explain E0308`.