Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
ui
/
borrowck
/
move-error-in-promoted-2.rs
blob: 13da34f3922c2516ef0c8baec99da3c85b849c93 [
file
] [
log
] [
blame
]
// Regression test for #70934
struct
S
;
fn
foo
()
{
&([
S
][
0
],);
//~^ ERROR cannot move out of type `[S; 1]`
}
fn
main
()
{}