about summary refs log tree commit diff
path: root/tests/ui/consts/slice-index-overflow-issue-130284.stderr
blob: 63c355b4b0f4d3b34fe182bed9b9e541f8b7c391 (plain)
1
2
3
4
5
6
7
8
9
error[E0080]: overflowing pointer arithmetic: the total offset in bytes does not fit in an `isize`
  --> $DIR/slice-index-overflow-issue-130284.rs:7:20
   |
LL |         let _ice = (*fat)[usize::MAX - 1];
   |                    ^^^^^^^^^^^^^^^^^^^^^^ evaluation of `C` failed here

error: aborting due to 1 previous error

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