1 error[E0308]: mismatched types
2 --> $DIR/proper-span-for-type-error.rs:8:5
5 | ^^^^^^^^^ expected enum `Result`, found `()`
7 = note: expected enum `Result<(), i32>`
9 help: try adding an expression at the end of the block
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0308`.