aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/add-pinned-field.stderr
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-05-27 16:38:49 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-27 16:38:49 +0000
commita5c0a13309164da22025014778cf4d794aec96a6 (patch)
treea2808291a9d00789d7f23e0e6bc9e133aace307a /tests/ui/pin_project/add-pinned-field.stderr
parent4eafa0cc0e589d8dd142ef7d2c30718b0f9c0e5b (diff)
parentfcb335e6ca1967ccc95468d5c8ea80541c14d9ef (diff)
downloadpin-project-a5c0a13309164da22025014778cf4d794aec96a6.tar.gz
Upgrade rust/crates/pin-project to 1.0.7 am: c95dc51644 am: b845c5fd84 am: fcb335e6ca
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1713049 Change-Id: Ic50e02a253e1644202b2133a68c1b2112ea1773c
Diffstat (limited to 'tests/ui/pin_project/add-pinned-field.stderr')
-rw-r--r--tests/ui/pin_project/add-pinned-field.stderr14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/ui/pin_project/add-pinned-field.stderr b/tests/ui/pin_project/add-pinned-field.stderr
index a140694..a391f3b 100644
--- a/tests/ui/pin_project/add-pinned-field.stderr
+++ b/tests/ui/pin_project/add-pinned-field.stderr
@@ -7,7 +7,12 @@ error[E0277]: `PhantomPinned` cannot be unpinned
21 | is_unpin::<Foo>(); //~ ERROR E0277
| ^^^^^^^^^^^^^^^ within `__Foo<'_>`, the trait `Unpin` is not implemented for `PhantomPinned`
|
- = note: required because it appears within the type `__Foo<'_>`
+ = note: consider using `Box::pin`
+note: required because it appears within the type `__Foo<'_>`
+ --> $DIR/add-pinned-field.rs:8:8
+ |
+8 | struct Foo {
+ | ^^^
= note: required because of the requirements on the impl of `Unpin` for `Foo`
error[E0277]: `PhantomPinned` cannot be unpinned
@@ -19,5 +24,10 @@ error[E0277]: `PhantomPinned` cannot be unpinned
22 | is_unpin::<Bar>(); //~ ERROR E0277
| ^^^^^^^^^^^^^^^ within `__Bar<'_>`, the trait `Unpin` is not implemented for `PhantomPinned`
|
- = note: required because it appears within the type `__Bar<'_>`
+ = note: consider using `Box::pin`
+note: required because it appears within the type `__Bar<'_>`
+ --> $DIR/add-pinned-field.rs:15:8
+ |
+15 | struct Bar {
+ | ^^^
= note: required because of the requirements on the impl of `Unpin` for `Bar`