]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/move-error-in-promoted-2.rs
Rollup merge of #102500 - compiler-errors:parse-sess-cleanup, r=cjgillot
[rust.git] / src / test / ui / borrowck / move-error-in-promoted-2.rs
1 // Regression test for #70934
2
3 struct S;
4
5 fn foo() {
6     &([S][0],);
7     //~^ ERROR cannot move out of type `[S; 1]`
8 }
9
10 fn main() {}