1 error[E0308]: mismatched types
2 --> $DIR/liveness-return-last-stmt-semi.rs:4:41
4 LL | macro_rules! test { () => { fn foo() -> i32 { 1; } } }
5 | --- ^^^ - help: consider removing this semicolon
7 | | expected i32, found ()
8 | implicitly returns `()` as its body has no tail or `return` expression
11 | -------- in this macro invocation
13 error[E0308]: mismatched types
14 --> $DIR/liveness-return-last-stmt-semi.rs:7:19
16 LL | fn no_return() -> i32 {}
17 | --------- ^^^ expected i32, found ()
19 | implicitly returns `()` as its body has no tail or `return` expression
21 error[E0308]: mismatched types
22 --> $DIR/liveness-return-last-stmt-semi.rs:9:19
24 LL | fn bar(x: u32) -> u32 {
25 | --- ^^^ expected u32, found ()
27 | implicitly returns `()` as its body has no tail or `return` expression
29 | - help: consider removing this semicolon
31 error[E0308]: mismatched types
32 --> $DIR/liveness-return-last-stmt-semi.rs:13:19
34 LL | fn baz(x: u64) -> u32 {
35 | --- ^^^ expected u32, found ()
37 | implicitly returns `()` as its body has no tail or `return` expression
39 error: aborting due to 4 previous errors
41 For more information about this error, try `rustc --explain E0308`.