1 error[E0308]: mismatched types
2 --> $DIR/issue-42764.rs:11:43
4 LL | this_function_expects_a_double_option(n);
5 | ^ expected enum `DoubleOption`, found `usize`
7 = note: expected enum `DoubleOption<_>`
9 help: try using a variant of the expected enum
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[E0308]: mismatched types
17 --> $DIR/issue-42764.rs:27:33
19 LL | let _c = Context { wrapper: Payload{} };
20 | ^^^^^^^^^ expected struct `Wrapper`, found struct `Payload`
22 error: aborting due to 2 previous errors
24 For more information about this error, try `rustc --explain E0308`.