1 error[E0308]: mismatched types
2 --> $DIR/issue-46112.rs:9:21
4 LL | fn main() { test(Ok(())); }
5 | -- ^^ expected enum `Option`, found `()`
7 | arguments to this enum variant are incorrect
9 = note: expected enum `Option<()>`
11 note: tuple variant defined here
12 --> $SRC_DIR/core/src/result.rs:LL:COL
13 help: try wrapping the expression in `Some`
15 LL | fn main() { test(Ok(Some(()))); }
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0308`.