From b60499f4f88c0f3b69ec5cc88cdbfeb61f9cc7d0 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 30 Jun 2022 10:54:45 +0900 Subject: [PATCH] Update ui test to nightly-2022-06-30 --- tests/ui/pin_project/unpin_sneaky.stderr | 6 ------ tests/ui/pinned_drop/call-drop-inner.stderr | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/ui/pin_project/unpin_sneaky.stderr b/tests/ui/pin_project/unpin_sneaky.stderr index ddf700de..82c2aa5b 100644 --- a/tests/ui/pin_project/unpin_sneaky.stderr +++ b/tests/ui/pin_project/unpin_sneaky.stderr @@ -3,9 +3,3 @@ error[E0412]: cannot find type `__S` in this scope | 9 | impl Unpin for __S {} //~ ERROR E0412,E0321 | ^^^ not found in this scope - -error[E0321]: cross-crate traits with a default impl, like `Unpin`, can only be implemented for a struct/enum type, not `[type error]` - --> tests/ui/pin_project/unpin_sneaky.rs:9:1 - | -9 | impl Unpin for __S {} //~ ERROR E0412,E0321 - | ^^^^^^^^^^^^^^^^^^ can't implement cross-crate trait with a default impl for non-struct/enum type diff --git a/tests/ui/pinned_drop/call-drop-inner.stderr b/tests/ui/pinned_drop/call-drop-inner.stderr index 5736de32..e3ceebd5 100644 --- a/tests/ui/pinned_drop/call-drop-inner.stderr +++ b/tests/ui/pinned_drop/call-drop-inner.stderr @@ -2,7 +2,7 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied --> tests/ui/pinned_drop/call-drop-inner.rs:13:9 | 13 | __drop_inner(__self); - | ^^^^^^^^^^^^ ------ argument unexpected + | ^^^^^^^^^^^^ ------ argument of type `Pin<&mut Struct>` unexpected | note: function defined here --> tests/ui/pinned_drop/call-drop-inner.rs:10:1