7 fn this_function_expects_a_double_option<T>(d: DoubleOption<T>) {}
11 this_function_expects_a_double_option(n);
12 //~^ ERROR mismatched types
13 //~| HELP try wrapping the expression in a variant of `DoubleOption`
17 // But don't issue the "try using a variant" help if the one-"variant" ADT is
18 // actually a one-field struct.
22 struct Wrapper { payload: Payload }
24 struct Context { wrapper: Wrapper }
27 let _c = Context { wrapper: Payload{} };
28 //~^ ERROR mismatched types