Sign in
rust
/
rust
/
2f253fb01abd2989c655a97a0d8fb84dfd425789
/
.
/
tests
/
ui
/
typeck
/
method-call-on-computed-array-index.rs
blob: 928be8c31efdd69936f15d9b0548bed89fbc7bf1 [
file
]
//! Regression test for <https://github.com/rust-lang/rust/issues/41604>.
//! This used to ICE.
//@ run-pass
struct
B
;
impl
B
{
fn
init
(&
mut
self
)
{}
}
fn
main
()
{
let
mut
b
=
[
B
];
b
[
1
-
1
].
init
();
}