]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/move-error-in-promoted-2.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[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() {}