11 lines
133 B
Rust
11 lines
133 B
Rust
// Regression test for #70934
|
|
|
|
struct S;
|
|
|
|
fn foo() {
|
|
&([S][0],);
|
|
//~^ ERROR cannot move out of type `[S; 1]`
|
|
}
|
|
|
|
fn main() {}
|