summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-eval/ub-nonnull.chalk.64bit.stderr
blob: 2a4b6f3b76f90b7119fae794caf481c1b4187f88 (plain)
1
2
3
4
5
6
7
8
9
error[E0284]: type annotations needed: cannot satisfy `<usize as SliceIndex<[u8]>>::Output == _`
  --> $DIR/ub-nonnull.rs:19:30
   |
LL |     let out_of_bounds_ptr = &ptr[255];
   |                              ^^^^^^^^ cannot satisfy `<usize as SliceIndex<[u8]>>::Output == _`

error: aborting due to previous error

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