about summary refs log tree commit diff
path: root/tests/ui/coercion/coerce-block-tail.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/coercion/coerce-block-tail.stderr')
-rw-r--r--tests/ui/coercion/coerce-block-tail.stderr7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/ui/coercion/coerce-block-tail.stderr b/tests/ui/coercion/coerce-block-tail.stderr
index 1301f3b7813..b358401b706 100644
--- a/tests/ui/coercion/coerce-block-tail.stderr
+++ b/tests/ui/coercion/coerce-block-tail.stderr
@@ -6,10 +6,11 @@ LL |     let _: &i32 = & { Box::new(1i32) };
    |
    = note: expected type `i32`
             found struct `Box<i32>`
-help: consider unboxing the value
+help: consider removing the Box
+   |
+LL -     let _: &i32 = & { Box::new(1i32) };
+LL +     let _: &i32 = & { 1i32 };
    |
-LL |     let _: &i32 = & { *Box::new(1i32) };
-   |                       +
 
 error: aborting due to 1 previous error