summaryrefslogtreecommitdiff
path: root/tests/ui/coercion/coercion-slice.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/coercion/coercion-slice.stderr')
-rw-r--r--tests/ui/coercion/coercion-slice.stderr11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/ui/coercion/coercion-slice.stderr b/tests/ui/coercion/coercion-slice.stderr
index c7b856a57eb..17bbca7a0bd 100644
--- a/tests/ui/coercion/coercion-slice.stderr
+++ b/tests/ui/coercion/coercion-slice.stderr
@@ -2,11 +2,14 @@ error[E0308]: mismatched types
--> $DIR/coercion-slice.rs:4:21
|
LL | let _: &[i32] = [0];
- | ------ ^^^
- | | |
- | | expected `&[i32]`, found `[{integer}; 1]`
- | | help: consider borrowing here: `&[0]`
+ | ------ ^^^ expected `&[i32]`, found `[{integer}; 1]`
+ | |
| expected due to this
+ |
+help: consider borrowing here
+ |
+LL | let _: &[i32] = &[0];
+ | +
error: aborting due to previous error