We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09e4a75 commit b66fb64Copy full SHA for b66fb64
src/test/ui/suggestions/boxed-variant-field.rs
@@ -9,7 +9,7 @@ fn foo(x: Ty) -> Ty {
9
Ty::List(elem) => foo(elem),
10
//~^ ERROR mismatched types
11
//~| HELP try dereferencing the `Box`
12
- //~| HELP try using a variant of the expected enum
+ //~| HELP try wrapping
13
}
14
15
src/test/ui/suggestions/boxed-variant-field.stderr
@@ -10,10 +10,10 @@ help: try dereferencing the `Box`
|
LL | Ty::List(elem) => foo(*elem),
| +
-help: try using a variant of the expected enum
+help: try wrapping the expression in `Ty::List`
LL | Ty::List(elem) => foo(Ty::List(elem)),
16
- | ~~~~~~~~~~~~~~
+ | +++++++++ +
17
18
error: aborting due to previous error
19
0 commit comments