summaryrefslogtreecommitdiff
path: root/tests/ui/const_prop/const-prop-ice.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const_prop/const-prop-ice.stderr')
-rw-r--r--tests/ui/const_prop/const-prop-ice.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/const_prop/const-prop-ice.stderr b/tests/ui/const_prop/const-prop-ice.stderr
new file mode 100644
index 00000000000..3bcf2b2de7b
--- /dev/null
+++ b/tests/ui/const_prop/const-prop-ice.stderr
@@ -0,0 +1,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
+