about summary refs log tree commit diff
path: root/tests/ui/consts/mono-reachable-invalid-const.stderr
blob: e357fd096fdfa2ca550debb1844ac12f9dd4d006 (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
error[E0080]: index out of bounds: the length is 1 but the index is 1
  --> $DIR/mono-reachable-invalid-const.rs:8:9
   |
LL |         ["oops"][b];
   |         ^^^^^^^^^^^ evaluation of `Bar::<0>::ASSERT` failed here

note: erroneous constant encountered
  --> $DIR/mono-reachable-invalid-const.rs:13:19
   |
LL |         let val = Self::ASSERT;
   |                   ^^^^^^^^^^^^

note: erroneous constant encountered
  --> $DIR/mono-reachable-invalid-const.rs:13:19
   |
LL |         let val = Self::ASSERT;
   |                   ^^^^^^^^^^^^
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

note: the above error was encountered while instantiating `fn Bar::<0>::assert`
  --> $DIR/mono-reachable-invalid-const.rs:21:5
   |
LL |     Bar::<0>::assert();
   |     ^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error

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