rust/tests/ui/borrowck/move-error-in-promoted-2.rs
2023-01-11 09:32:08 +00:00

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() {}