about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-11-16 19:57:12 +0100
committerMara Bos <m-ou.se@m-ou.se>2021-11-16 19:57:12 +0100
commitb66fb641da92ea4c9d1c5b0d52ea273cbc21f76e (patch)
tree0fb1589196982a77ed4089f67b0eb0b493072b30
parent09e4a75f294a9b058bd908c98df38dd41e68f6ff (diff)
downloadrust-b66fb641da92ea4c9d1c5b0d52ea273cbc21f76e.tar.gz
rust-b66fb641da92ea4c9d1c5b0d52ea273cbc21f76e.zip
Update test output.
-rw-r--r--src/test/ui/suggestions/boxed-variant-field.rs2
-rw-r--r--src/test/ui/suggestions/boxed-variant-field.stderr4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/suggestions/boxed-variant-field.rs b/src/test/ui/suggestions/boxed-variant-field.rs
index d8f7fac1513..9b9e70a675f 100644
--- a/src/test/ui/suggestions/boxed-variant-field.rs
+++ b/src/test/ui/suggestions/boxed-variant-field.rs
@@ -9,7 +9,7 @@ fn foo(x: Ty) -> Ty {
         Ty::List(elem) => foo(elem),
         //~^ ERROR mismatched types
         //~| HELP try dereferencing the `Box`
-        //~| HELP try using a variant of the expected enum
+        //~| HELP try wrapping
     }
 }
 
diff --git a/src/test/ui/suggestions/boxed-variant-field.stderr b/src/test/ui/suggestions/boxed-variant-field.stderr
index d4ccb2ca490..e865b993a4c 100644
--- a/src/test/ui/suggestions/boxed-variant-field.stderr
+++ b/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)),
-   |                               ~~~~~~~~~~~~~~
+   |                               +++++++++    +
 
 error: aborting due to previous error