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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
1002 B
Plaintext
Raw Normal View History

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