diff options
Diffstat (limited to 'src/test/ui/borrowck/move-error-in-promoted.rs')
-rw-r--r-- | src/test/ui/borrowck/move-error-in-promoted.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/borrowck/move-error-in-promoted.rs b/src/test/ui/borrowck/move-error-in-promoted.rs deleted file mode 100644 index b94db6451..000000000 --- a/src/test/ui/borrowck/move-error-in-promoted.rs +++ /dev/null @@ -1,17 +0,0 @@ -// Regression test for #70934 - -fn f() { - const C: [S2; 1] = [S2]; - let _ = S1(C[0]).clone(); - //~^ ERROR cannot move out of type `[S2; 1]` -} - -#[derive(Clone)] -struct S1(S2); - -#[derive(Clone)] -struct S2; - -fn main() { - f(); -} |