]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/did_you_mean/issue-42764.stderr
only issue "variant of the expected type" suggestion for enums
[rust.git] / src / test / ui / did_you_mean / issue-42764.stderr
index 390b214e62e0b7bd0ed13719f3657100efcaf679..e256a436affbad2bc4ad8bfe793d39bf835979ec 100644 (file)
@@ -13,6 +13,15 @@ LL |     this_function_expects_a_double_option(DoubleOption::FirstSome(n));
 LL |     this_function_expects_a_double_option(DoubleOption::AlternativeSome(n));
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-error: aborting due to previous error
+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
 
-If you want more information on this error, try using "rustc --explain E0308"
+For more information about this error, try `rustc --explain E0308`.