1 error[E0308]: mismatched types
2 --> $DIR/issue-42764.rs:21:43
4 21 | this_function_expects_a_double_option(n);
5 | ^ expected enum `DoubleOption`, found usize
7 = note: expected type `DoubleOption<_>`
9 help: perhaps you meant to use a variant of the expected type
11 21 | this_function_expects_a_double_option(DoubleOption::FirstSome(n));
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
13 21 | this_function_expects_a_double_option(DoubleOption::AlternativeSome(n));
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 error: aborting due to previous error