diff options
| author | Ralf Jung <post@ralfj.de> | 2023-08-06 15:06:40 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-08-06 15:06:40 +0200 |
| commit | 0c595440e36500630a92edbf421ce5f7706704e3 (patch) | |
| tree | 31a50162e6878adb07bba737f2453ca2c2692354 | |
| parent | 09c71a55470b4750f29d3d8c3afe971a5713ec21 (diff) | |
| download | rust-0c595440e36500630a92edbf421ce5f7706704e3.tar.gz rust-0c595440e36500630a92edbf421ce5f7706704e3.zip | |
add test for issue #111353
| -rw-r--r-- | tests/ui/const_prop/ice-issue-111353.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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; +} |
