Skip to content

Commit db26585

Browse files
committed
Update ui test suite to nightly-2023-04-14
1 parent e7576dc commit db26585

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/ui/opaque_autotraits.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ error[E0277]: `PhantomPinned` cannot be unpinned
4444
15 | assert_unpin::<ffi::Opaque>();
4545
| ^^^^^^^^^^^ within `ffi::Opaque`, the trait `Unpin` is not implemented for `PhantomPinned`
4646
|
47-
= note: consider using `Box::pin`
47+
= note: consider using the `pin!` macro
48+
consider using `Box::pin` if you need to access the pinned value outside of the current scope
4849
= note: required because it appears within the type `PhantomData<PhantomPinned>`
4950
= note: required because it appears within the type `Opaque`
5051
note: required because it appears within the type `Opaque`

tests/ui/rust_pinned.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ error[E0277]: `PhantomPinned` cannot be unpinned
44
6 | type Pinned;
55
| ^^^^^^ within `Pinned`, the trait `Unpin` is not implemented for `PhantomPinned`
66
|
7-
= note: consider using `Box::pin`
7+
= note: consider using the `pin!` macro
8+
consider using `Box::pin` if you need to access the pinned value outside of the current scope
89
note: required because it appears within the type `Pinned`
910
--> tests/ui/rust_pinned.rs:10:12
1011
|

0 commit comments

Comments
 (0)