2017-07-12 03:03:58 +00:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-42764.rs:11:43
|
2017-07-12 03:03:58 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | this_function_expects_a_double_option(n);
|
2019-11-15 17:37:01 +00:00
|
|
|
| ^ expected enum `DoubleOption`, found `usize`
|
2017-07-12 03:03:58 +00:00
|
|
|
|
|
2019-11-13 22:16:56 +00:00
|
|
|
= note: expected enum `DoubleOption<_>`
|
2017-07-12 03:03:58 +00:00
|
|
|
found type `usize`
|
2021-11-04 16:57:30 +00:00
|
|
|
help: try wrapping the expression in a variant of `DoubleOption`
|
2017-07-12 03:03:58 +00:00
|
|
|
|
|
2021-10-01 18:09:31 +00:00
|
|
|
LL | this_function_expects_a_double_option(DoubleOption::FirstSome(n));
|
2021-11-04 16:57:30 +00:00
|
|
|
| ++++++++++++++++++++++++ +
|
|
|
|
LL | this_function_expects_a_double_option(DoubleOption::AlternativeSome(n));
|
|
|
|
| ++++++++++++++++++++++++++++++ +
|
2017-07-12 03:03:58 +00:00
|
|
|
|
2018-10-21 22:37:01 +00:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-42764.rs:27:33
|
2018-10-21 22:37:01 +00:00
|
|
|
|
|
|
|
|
LL | let _c = Context { wrapper: Payload{} };
|
|
|
|
| ^^^^^^^^^ expected struct `Wrapper`, found struct `Payload`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2017-07-12 03:03:58 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|