fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
984 B24 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-42764.rs:11:43
3   |
4LL |     this_function_expects_a_double_option(n);
5   |                                           ^ expected enum `DoubleOption`, found `usize`
6   |
7   = note: expected enum `DoubleOption<_>`
8              found type `usize`
9help: try using a variant of the expected enum
10   |
11LL |     this_function_expects_a_double_option(DoubleOption::FirstSome(n));
12   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^
13LL |     this_function_expects_a_double_option(DoubleOption::AlternativeSome(n));
14   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
16error[E0308]: mismatched types
17  --> $DIR/issue-42764.rs:27:33
18   |
19LL |     let _c = Context { wrapper: Payload{} };
20   |                                 ^^^^^^^^^ expected struct `Wrapper`, found struct `Payload`
21
22error: aborting due to 2 previous errors
23
24For more information about this error, try `rustc --explain E0308`.