mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
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() {}
|