rust/tests/ui/borrowck/move-error-in-promoted-2.rs

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