Skip to content

Commit b66fb64

Browse files
committed
Update test output.
1 parent 09e4a75 commit b66fb64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/ui/suggestions/boxed-variant-field.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn foo(x: Ty) -> Ty {
99
Ty::List(elem) => foo(elem),
1010
//~^ ERROR mismatched types
1111
//~| HELP try dereferencing the `Box`
12-
//~| HELP try using a variant of the expected enum
12+
//~| HELP try wrapping
1313
}
1414
}
1515

src/test/ui/suggestions/boxed-variant-field.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ help: try dereferencing the `Box`
1010
|
1111
LL | Ty::List(elem) => foo(*elem),
1212
| +
13-
help: try using a variant of the expected enum
13+
help: try wrapping the expression in `Ty::List`
1414
|
1515
LL | Ty::List(elem) => foo(Ty::List(elem)),
16-
| ~~~~~~~~~~~~~~
16+
| +++++++++ +
1717

1818
error: aborting due to previous error
1919

0 commit comments

Comments
 (0)