1 error[E0308]: mismatched types
2 --> $DIR/issue-94176.rs:5:32
4 LL | pub fn test(a: Option<u32>) -> Option<u32> {
5 | ---- ^^^^^^^^^^^ expected enum `Option`, found `()`
7 | implicitly returns `()` as its body has no tail or `return` expression
9 = note: expected enum `Option<u32>`
11 help: consider returning the local binding `a`
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0308`.