aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/unstable-features/trivial_bounds-feature-gate.stderr
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-05-27 15:42:45 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-27 15:42:45 +0000
commitb845c5fd84f50f28cd5cce350eac405562744e3b (patch)
treea2808291a9d00789d7f23e0e6bc9e133aace307a /tests/ui/unstable-features/trivial_bounds-feature-gate.stderr
parent2985289ffb56db1a2cf157e4b6874d18496b2c35 (diff)
parentc95dc516440636acb2e9f0b61e3a4595a90c4d2e (diff)
downloadpin-project-b845c5fd84f50f28cd5cce350eac405562744e3b.tar.gz
Upgrade rust/crates/pin-project to 1.0.7 am: c95dc51644android-s-beta-4android-s-beta-3android-s-beta-4
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1713049 Change-Id: I83082aeac5db98559efa3c9c5ccf4df14e0ff691
Diffstat (limited to 'tests/ui/unstable-features/trivial_bounds-feature-gate.stderr')
-rw-r--r--tests/ui/unstable-features/trivial_bounds-feature-gate.stderr18
1 files changed, 16 insertions, 2 deletions
diff --git a/tests/ui/unstable-features/trivial_bounds-feature-gate.stderr b/tests/ui/unstable-features/trivial_bounds-feature-gate.stderr
index dd151b0..fa81083 100644
--- a/tests/ui/unstable-features/trivial_bounds-feature-gate.stderr
+++ b/tests/ui/unstable-features/trivial_bounds-feature-gate.stderr
@@ -4,6 +4,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned
8 | impl Unpin for A where PhantomPinned: Unpin {} //~ ERROR E0277
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `PhantomPinned`
|
+ = note: consider using `Box::pin`
= help: see issue #48214
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
@@ -12,6 +13,8 @@ error[E0277]: `PhantomPinned` cannot be unpinned
|
8 | impl Unpin for A where PhantomPinned: Unpin {} //~ ERROR E0277
| ^^^^^ the trait `Unpin` is not implemented for `PhantomPinned`
+ |
+ = note: consider using `Box::pin`
error[E0277]: `PhantomPinned` cannot be unpinned
--> $DIR/trivial_bounds-feature-gate.rs:16:5
@@ -19,6 +22,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned
16 | impl Unpin for B where Wrapper<PhantomPinned>: Unpin {} //~ ERROR E0277
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `PhantomPinned`
|
+ = note: consider using `Box::pin`
= note: required because of the requirements on the impl of `Unpin` for `phantom_pinned::Wrapper<PhantomPinned>`
= help: see issue #48214
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
@@ -29,7 +33,12 @@ error[E0277]: `PhantomPinned` cannot be unpinned
34 | impl Unpin for A where Inner: Unpin {} //~ ERROR E0277
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned`
|
- = note: required because it appears within the type `Inner`
+ = note: consider using `Box::pin`
+note: required because it appears within the type `Inner`
+ --> $DIR/trivial_bounds-feature-gate.rs:30:12
+ |
+30 | struct Inner(PhantomPinned);
+ | ^^^^^
= help: see issue #48214
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
@@ -39,7 +48,12 @@ error[E0277]: `PhantomPinned` cannot be unpinned
42 | impl Unpin for B where Wrapper<Inner>: Unpin {} //~ ERROR E0277
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned`
|
- = note: required because it appears within the type `Inner`
+ = note: consider using `Box::pin`
+note: required because it appears within the type `Inner`
+ --> $DIR/trivial_bounds-feature-gate.rs:30:12
+ |
+30 | struct Inner(PhantomPinned);
+ | ^^^^^
= note: required because of the requirements on the impl of `Unpin` for `inner::Wrapper<Inner>`
= help: see issue #48214
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable