diff options
Diffstat (limited to 'tests/ui/consts/const-eval/ub-nonnull.chalk.64bit.stderr')
-rw-r--r-- | tests/ui/consts/const-eval/ub-nonnull.chalk.64bit.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/consts/const-eval/ub-nonnull.chalk.64bit.stderr b/tests/ui/consts/const-eval/ub-nonnull.chalk.64bit.stderr new file mode 100644 index 000000000..2a4b6f3b7 --- /dev/null +++ b/tests/ui/consts/const-eval/ub-nonnull.chalk.64bit.stderr @@ -0,0 +1,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`. |