18 lines
654 B
Plaintext
18 lines
654 B
Plaintext
|
error[E0308]: mismatched types
|
||
|
--> $DIR/issue-42764.rs:21:43
|
||
|
|
|
||
|
21 | this_function_expects_a_double_option(n);
|
||
|
| ^ expected enum `DoubleOption`, found usize
|
||
|
|
|
||
|
= note: expected type `DoubleOption<_>`
|
||
|
found type `usize`
|
||
|
help: perhaps you meant to use a variant of the expected type
|
||
|
|
|
||
|
21 | this_function_expects_a_double_option(FirstSome(n));
|
||
|
| ^^^^^^^^^^^^
|
||
|
21 | this_function_expects_a_double_option(AlternativeSome(n));
|
||
|
| ^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|