]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-err-late.stderr
Rollup merge of #106949 - compiler-errors:is-poly, r=BoxyUwU
[rust.git] / tests / ui / consts / const-err-late.stderr
1 error[E0080]: evaluation of `S::<i32>::FOO` failed
2   --> $DIR/const-err-late.rs:13:21
3    |
4 LL |     const FOO: u8 = [5u8][1];
5    |                     ^^^^^^^^ index out of bounds: the length is 1 but the index is 1
6
7 note: erroneous constant used
8   --> $DIR/const-err-late.rs:19:16
9    |
10 LL |     black_box((S::<i32>::FOO, S::<u32>::FOO));
11    |                ^^^^^^^^^^^^^
12
13 note: erroneous constant used
14   --> $DIR/const-err-late.rs:19:16
15    |
16 LL |     black_box((S::<i32>::FOO, S::<u32>::FOO));
17    |                ^^^^^^^^^^^^^
18
19 error[E0080]: evaluation of `S::<u32>::FOO` failed
20   --> $DIR/const-err-late.rs:13:21
21    |
22 LL |     const FOO: u8 = [5u8][1];
23    |                     ^^^^^^^^ index out of bounds: the length is 1 but the index is 1
24
25 note: erroneous constant used
26   --> $DIR/const-err-late.rs:19:31
27    |
28 LL |     black_box((S::<i32>::FOO, S::<u32>::FOO));
29    |                               ^^^^^^^^^^^^^
30
31 note: erroneous constant used
32   --> $DIR/const-err-late.rs:19:31
33    |
34 LL |     black_box((S::<i32>::FOO, S::<u32>::FOO));
35    |                               ^^^^^^^^^^^^^
36
37 note: erroneous constant used
38   --> $DIR/const-err-late.rs:19:16
39    |
40 LL |     black_box((S::<i32>::FOO, S::<u32>::FOO));
41    |                ^^^^^^^^^^^^^
42
43 note: erroneous constant used
44   --> $DIR/const-err-late.rs:19:31
45    |
46 LL |     black_box((S::<i32>::FOO, S::<u32>::FOO));
47    |                               ^^^^^^^^^^^^^
48
49 error: aborting due to 2 previous errors
50
51 For more information about this error, try `rustc --explain E0080`.