1 error[E0308]: mismatched types
2 --> $DIR/tail-expr-as-potential-return.rs:7:9
6 | | ^^^^^^^ expected `()`, found enum `Result`
8 | |_____- expected this to be `()`
10 = note: expected unit type `()`
11 found enum `Result<_, {integer}>`
12 help: you might have meant to return this value
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0308`.