rust/src/test/ui/issues/issue-46112.stderr
2019-11-18 11:03:04 -08:00

16 lines
510 B
Plaintext

error[E0308]: mismatched types
--> $DIR/issue-46112.rs:9:21
|
LL | fn main() { test(Ok(())); }
| ^^
| |
| expected enum `std::option::Option`, found `()`
| help: try using a variant of the expected enum: `Some(())`
|
= note: expected enum `std::option::Option<()>`
found unit type `()`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.