summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-54348.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/issue-54348.stderr')
-rw-r--r--src/test/ui/consts/issue-54348.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/consts/issue-54348.stderr b/src/test/ui/consts/issue-54348.stderr
new file mode 100644
index 000000000..eb85f3498
--- /dev/null
+++ b/src/test/ui/consts/issue-54348.stderr
@@ -0,0 +1,16 @@
+error: this operation will panic at runtime
+ --> $DIR/issue-54348.rs:5:5
+ |
+LL | [1][1.5 as usize];
+ | ^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 1
+ |
+ = note: `#[deny(unconditional_panic)]` on by default
+
+error: this operation will panic at runtime
+ --> $DIR/issue-54348.rs:6:5
+ |
+LL | [1][1u64 as usize];
+ | ^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 1
+
+error: aborting due to 2 previous errors
+