From 0c595440e36500630a92edbf421ce5f7706704e3 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 6 Aug 2023 15:06:40 +0200 Subject: [PATCH] add test for issue #111353 --- tests/ui/const_prop/ice-issue-111353.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/ui/const_prop/ice-issue-111353.rs diff --git a/tests/ui/const_prop/ice-issue-111353.rs b/tests/ui/const_prop/ice-issue-111353.rs new file mode 100644 index 00000000000..99d1b792fea --- /dev/null +++ b/tests/ui/const_prop/ice-issue-111353.rs @@ -0,0 +1,7 @@ +// build-pass +#![crate_type = "lib"] +#![feature(unsized_fn_params)] + +pub fn f(mut x: [i32]) { + x[0] = 1; +}