rust/src/test/ui/did_you_mean/issue-42764.stderr

28 lines
1.0 KiB
Plaintext
Raw Normal View History

error[E0308]: mismatched types
--> $DIR/issue-42764.rs:21:43
|
2018-02-22 18:42:32 -06:00
LL | this_function_expects_a_double_option(n);
| ^ expected enum `DoubleOption`, found usize
|
= note: expected type `DoubleOption<_>`
found type `usize`
help: try using a variant of the expected type
|
2018-02-24 17:01:39 -06:00
LL | this_function_expects_a_double_option(DoubleOption::FirstSome(n));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-02-24 17:01:39 -06:00
LL | this_function_expects_a_double_option(DoubleOption::AlternativeSome(n));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> $DIR/issue-42764.rs:37:33
|
LL | let _c = Context { wrapper: Payload{} };
| ^^^^^^^^^ expected struct `Wrapper`, found struct `Payload`
|
= note: expected type `Wrapper`
found type `Payload`
error: aborting due to 2 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0308`.