]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-err.stderr
Shorten def_span for more items.
[rust.git] / src / test / ui / consts / const-err.stderr
index 3b03e702dc4aec7d6342f1bcdef32d743d568aa3..e3b0d29c853241dffead0933d1e2ab8cc611d598 100644 (file)
@@ -2,9 +2,7 @@ warning: any use of this value will cause an error
   --> $DIR/const-err.rs:11:17
    |
 LL | const FOO: u8 = [5u8][1];
-   | ----------------^^^^^^^^-
-   |                 |
-   |                 index out of bounds: the length is 1 but the index is 1
+   | -------------   ^^^^^^^^ index out of bounds: the length is 1 but the index is 1
    |
 note: the lint level is defined here
   --> $DIR/const-err.rs:5:9
@@ -34,9 +32,7 @@ warning: any use of this value will cause an error
   --> $DIR/const-err.rs:11:17
    |
 LL | const FOO: u8 = [5u8][1];
-   | ----------------^^^^^^^^-
-   |                 |
-   |                 index out of bounds: the length is 1 but the index is 1
+   | -------------   ^^^^^^^^ index out of bounds: the length is 1 but the index is 1
    |
 note: the lint level is defined here
   --> $DIR/const-err.rs:5:9