about summary refs log tree commit diff
path: root/tests/ui/consts/const-err-late.stderr
blob: 02be7bbe10c479743b298bea64d5cc9c12910c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
error[E0080]: index out of bounds: the length is 1 but the index is 1
  --> $DIR/const-err-late.rs:14:21
   |
LL |     const FOO: u8 = [5u8][1];
   |                     ^^^^^^^^ evaluation of `S::<i32>::FOO` failed here

note: erroneous constant encountered
  --> $DIR/const-err-late.rs:20:16
   |
LL |     black_box((S::<i32>::FOO, S::<u32>::FOO));
   |                ^^^^^^^^^^^^^

error[E0080]: index out of bounds: the length is 1 but the index is 1
  --> $DIR/const-err-late.rs:14:21
   |
LL |     const FOO: u8 = [5u8][1];
   |                     ^^^^^^^^ evaluation of `S::<u32>::FOO` failed here

note: erroneous constant encountered
  --> $DIR/const-err-late.rs:20:31
   |
LL |     black_box((S::<i32>::FOO, S::<u32>::FOO));
   |                               ^^^^^^^^^^^^^

note: erroneous constant encountered
  --> $DIR/const-err-late.rs:20:16
   |
LL |     black_box((S::<i32>::FOO, S::<u32>::FOO));
   |                ^^^^^^^^^^^^^
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

note: erroneous constant encountered
  --> $DIR/const-err-late.rs:20:31
   |
LL |     black_box((S::<i32>::FOO, S::<u32>::FOO));
   |                               ^^^^^^^^^^^^^
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0080`.