summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-prop-ice.stderr
blob: 3bcf2b2de7bd7c01472e4b50a4d5216baec66f85 (plain)
1
2
3
4
5
6
7
8
9
10
error: this operation will panic at runtime
  --> $DIR/const-prop-ice.rs:4:5
   |
LL |     [0; 3][3u64 as usize];
   |     ^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 3 but the index is 3
   |
   = note: `#[deny(unconditional_panic)]` on by default

error: aborting due to previous error