]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/move-error-in-promoted-2.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[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() {}