From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../move-in-static-initializer-issue-38520.stderr | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/test/ui/borrowck/move-in-static-initializer-issue-38520.stderr (limited to 'src/test/ui/borrowck/move-in-static-initializer-issue-38520.stderr') diff --git a/src/test/ui/borrowck/move-in-static-initializer-issue-38520.stderr b/src/test/ui/borrowck/move-in-static-initializer-issue-38520.stderr deleted file mode 100644 index 6619fb42c..000000000 --- a/src/test/ui/borrowck/move-in-static-initializer-issue-38520.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error[E0507]: cannot move out of a shared reference - --> $DIR/move-in-static-initializer-issue-38520.rs:12:23 - | -LL | static Y: usize = get(*&X); - | ^^^ move occurs because value has type `Foo`, which does not implement the `Copy` trait - -error[E0507]: cannot move out of a shared reference - --> $DIR/move-in-static-initializer-issue-38520.rs:13:22 - | -LL | const Z: usize = get(*&X); - | ^^^ move occurs because value has type `Foo`, which does not implement the `Copy` trait - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0507`. -- cgit v1.2.3