From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/const_prop/const-prop-ice2.stderr | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/ui/const_prop/const-prop-ice2.stderr (limited to 'tests/ui/const_prop/const-prop-ice2.stderr') diff --git a/tests/ui/const_prop/const-prop-ice2.stderr b/tests/ui/const_prop/const-prop-ice2.stderr new file mode 100644 index 000000000..2b65ffc2d --- /dev/null +++ b/tests/ui/const_prop/const-prop-ice2.stderr @@ -0,0 +1,10 @@ +error: this operation will panic at runtime + --> $DIR/const-prop-ice2.rs:6:20 + | +LL | println!("{}", xs[Enum::One as usize]); + | ^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 1 + | + = note: `#[deny(unconditional_panic)]` on by default + +error: aborting due to previous error + -- cgit v1.2.3