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 | this function's body doesn't return
11 | -------- in this macro invocation
13 = note: expected type `i32`
16 error[E0308]: mismatched types
17 --> $DIR/liveness-return-last-stmt-semi.rs:7:19
19 LL | fn no_return() -> i32 {}
20 | --------- ^^^ expected i32, found ()
22 | this function's body doesn't return
24 = note: expected type `i32`
27 error[E0308]: mismatched types
28 --> $DIR/liveness-return-last-stmt-semi.rs:9:19
30 LL | fn bar(x: u32) -> u32 {
31 | --- ^^^ expected u32, found ()
33 | this function's body doesn't return
35 | - help: consider removing this semicolon
37 = note: expected type `u32`
40 error[E0308]: mismatched types
41 --> $DIR/liveness-return-last-stmt-semi.rs:13:19
43 LL | fn baz(x: u64) -> u32 {
44 | --- ^^^ expected u32, found ()
46 | this function's body doesn't return
48 = note: expected type `u32`
51 error: aborting due to 4 previous errors
53 For more information about this error, try `rustc --explain E0308`.