mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 21:55:31 +00:00
13 lines
365 B
Rust
13 lines
365 B
Rust
// This test used to ICE under `-Zpolonius=next` when computing loan liveness
|
|
// and taking kills into account during reachability traversal of the localized
|
|
// constraint graph. Originally from another test but on edition 2024, as
|
|
// seen in issue #135646.
|
|
|
|
//@ compile-flags: -Zpolonius=next
|
|
//@ edition: 2024
|
|
//@ check-pass
|
|
|
|
fn main() {
|
|
&{ [1, 2, 3][4] };
|
|
}
|