1 error[E0308]: mismatched types
2 --> $DIR/issue-42764.rs:21:43
4 LL | this_function_expects_a_double_option(n);
5 | ^ expected enum `DoubleOption`, found usize
7 = note: expected type `DoubleOption<_>`
9 help: try using a variant of the expected type
11 LL | this_function_expects_a_double_option(DoubleOption::FirstSome(n));
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
13 LL | this_function_expects_a_double_option(DoubleOption::AlternativeSome(n));
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 error: aborting due to previous error
18 If you want more information on this error, try using "rustc --explain E0308"