1 error[E0308]: mismatched types
2 --> $DIR/tail-expr-as-potential-return.rs:27:9
6 | | ^^^^^^^ expected `()`, found enum `Result`
7 LL | | //| HELP you might have meant to return this value
9 | |_____- expected this to be `()`
11 = note: expected unit type `()`
12 found enum `Result<_, {integer}>`
13 help: you might have meant to return this value
18 error[E0308]: mismatched types
19 --> $DIR/tail-expr-as-potential-return.rs:43:9
23 | | ^^^^ expected `()`, found `i32`
24 LL | | //| HELP you might have meant to return this value
26 | |_____- expected this to be `()`
28 help: you might have meant to return this value
33 error[E0308]: mismatched types
34 --> $DIR/tail-expr-as-potential-return.rs:19:9
38 | | ^^^^^^^ expected `()`, found enum `Result`
39 LL | | //| HELP you might have meant to return this value
41 | |_____- expected this to be `()`
43 = note: expected unit type `()`
44 found enum `Result<_, {integer}>`
45 help: you might have meant to return this value
50 error: aborting due to 3 previous errors
52 For more information about this error, try `rustc --explain E0308`.