aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pinned_drop/conditional-drop-impl.stderr
diff options
context:
space:
mode:
authorDavid LeGare <legare@google.com>2022-03-02 16:21:12 +0000
committerDavid LeGare <legare@google.com>2022-03-02 16:21:12 +0000
commit8915193b0de5f14b58aea0cd7bd72a6083529dc2 (patch)
tree80c46c7f97eb0158db00b2c4710dd54073c36733 /tests/ui/pinned_drop/conditional-drop-impl.stderr
parentdd72f94a2923223417a1d62cfd1873041247653a (diff)
downloadpin-project-8915193b0de5f14b58aea0cd7bd72a6083529dc2.tar.gz
Update pin-project to 1.0.10
Test: cd external/rust/crates && atest --host -c Change-Id: I60f27e769ab8c287dbf4948e61bae172e6949cfc
Diffstat (limited to 'tests/ui/pinned_drop/conditional-drop-impl.stderr')
-rw-r--r--tests/ui/pinned_drop/conditional-drop-impl.stderr35
1 files changed, 15 insertions, 20 deletions
diff --git a/tests/ui/pinned_drop/conditional-drop-impl.stderr b/tests/ui/pinned_drop/conditional-drop-impl.stderr
index a512578..0c55bc2 100644
--- a/tests/ui/pinned_drop/conditional-drop-impl.stderr
+++ b/tests/ui/pinned_drop/conditional-drop-impl.stderr
@@ -1,11 +1,11 @@
error[E0367]: `Drop` impl requires `T: Unpin` but the struct it is implemented for does not
- --> $DIR/conditional-drop-impl.rs:11:9
+ --> tests/ui/pinned_drop/conditional-drop-impl.rs:11:9
|
11 | impl<T: Unpin> Drop for DropImpl<T> {
| ^^^^^
|
note: the implementor must specify the same requirement
- --> $DIR/conditional-drop-impl.rs:7:1
+ --> tests/ui/pinned_drop/conditional-drop-impl.rs:7:1
|
7 | / struct DropImpl<T> {
8 | | f: T,
@@ -13,23 +13,18 @@ note: the implementor must specify the same requirement
| |_^
error[E0277]: `T` cannot be unpinned
- --> $DIR/conditional-drop-impl.rs:16:15
- |
-16 | #[pin_project(PinnedDrop)] //~ ERROR E0277
- | ^^^^^^^^^^ the trait `Unpin` is not implemented for `T`
- |
- = note: consider using `Box::pin`
+ --> tests/ui/pinned_drop/conditional-drop-impl.rs:16:15
+ |
+16 | #[pin_project(PinnedDrop)] //~ ERROR E0277
+ | ^^^^^^^^^^ the trait `Unpin` is not implemented for `T`
+ |
+ = note: consider using `Box::pin`
note: required because of the requirements on the impl of `PinnedDrop` for `PinnedDropImpl<T>`
- --> $DIR/conditional-drop-impl.rs:23:16
- |
-23 | impl<T: Unpin> PinnedDrop for PinnedDropImpl<T> {
- | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
-note: required by `pin_project::__private::PinnedDrop::drop`
- --> $DIR/lib.rs:186:9
- |
-186 | unsafe fn drop(self: Pin<&mut Self>);
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ --> tests/ui/pinned_drop/conditional-drop-impl.rs:23:16
+ |
+23 | impl<T: Unpin> PinnedDrop for PinnedDropImpl<T> {
+ | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
help: consider restricting type parameter `T`
- |
-17 | struct PinnedDropImpl<T: std::marker::Unpin> {
- | ^^^^^^^^^^^^^^^^^^^^
+ |
+17 | struct PinnedDropImpl<T: std::marker::Unpin> {
+ | ++++++++++++++++++++