Skip to content

Commit 2690483

Browse files
committed
new impl fixes crash test
1 parent ba0fae8 commit 2690483

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

tests/crashes/135646.rs

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This test used to ICE under `-Zpolonius=next` when computing loan liveness
2+
// and taking kills into account during reachability traversal of the localized
3+
// constraint graph. Originally from another test but on edition 2024, as
4+
// seen in issue #135646.
5+
6+
//@ compile-flags: -Zpolonius=next
7+
//@ edition: 2024
8+
//@ check-pass
9+
10+
fn main() {
11+
&{ [1, 2, 3][4] };
12+
}

0 commit comments

Comments
 (0)