aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/remove-attr-from-struct.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pin_project/remove-attr-from-struct.stderr')
-rw-r--r--tests/ui/pin_project/remove-attr-from-struct.stderr56
1 files changed, 32 insertions, 24 deletions
diff --git a/tests/ui/pin_project/remove-attr-from-struct.stderr b/tests/ui/pin_project/remove-attr-from-struct.stderr
index 3173248..112584e 100644
--- a/tests/ui/pin_project/remove-attr-from-struct.stderr
+++ b/tests/ui/pin_project/remove-attr-from-struct.stderr
@@ -1,3 +1,11 @@
+error: #[pin_project] attribute has been removed
+ --> $DIR/remove-attr-from-struct.rs:21:1
+ |
+21 | #[pin_project] //~ ERROR has been removed
+ | ^^^^^^^^^^^^^^
+ |
+ = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
+
error: cannot find attribute `pin` in this scope
--> $DIR/remove-attr-from-struct.rs:10:7
|
@@ -11,53 +19,53 @@ error: cannot find attribute `pin` in this scope
| ^^^
error[E0277]: `std::marker::PhantomPinned` cannot be unpinned
- --> $DIR/remove-attr-from-struct.rs:22:5
+ --> $DIR/remove-attr-from-struct.rs:34:5
|
5 | fn is_unpin<T: Unpin>() {}
| ----- required by this bound in `is_unpin`
...
-22 | is_unpin::<Foo>(); //~ ERROR E0277
- | ^^^^^^^^^^^^^^^ within `Foo`, the trait `std::marker::Unpin` is not implemented for `std::marker::PhantomPinned`
+34 | is_unpin::<A>(); //~ ERROR E0277
+ | ^^^^^^^^^^^^^ within `A`, the trait `std::marker::Unpin` is not implemented for `std::marker::PhantomPinned`
|
- = note: required because it appears within the type `Foo`
+ = note: required because it appears within the type `A`
error[E0277]: `std::marker::PhantomPinned` cannot be unpinned
- --> $DIR/remove-attr-from-struct.rs:23:5
+ --> $DIR/remove-attr-from-struct.rs:35:5
|
5 | fn is_unpin<T: Unpin>() {}
| ----- required by this bound in `is_unpin`
...
-23 | is_unpin::<Bar>(); //~ ERROR E0277
- | ^^^^^^^^^^^^^^^ within `Bar`, the trait `std::marker::Unpin` is not implemented for `std::marker::PhantomPinned`
+35 | is_unpin::<B>(); //~ ERROR E0277
+ | ^^^^^^^^^^^^^ within `B`, the trait `std::marker::Unpin` is not implemented for `std::marker::PhantomPinned`
|
- = note: required because it appears within the type `Bar`
+ = note: required because it appears within the type `B`
error[E0277]: `std::marker::PhantomPinned` cannot be unpinned
- --> $DIR/remove-attr-from-struct.rs:26:14
+ --> $DIR/remove-attr-from-struct.rs:39:13
|
-26 | let _x = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
- | ^^^^^^^^ within `Foo`, the trait `std::marker::Unpin` is not implemented for `std::marker::PhantomPinned`
+39 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
+ | ^^^^^^^^ within `A`, the trait `std::marker::Unpin` is not implemented for `std::marker::PhantomPinned`
|
- = note: required because it appears within the type `Foo`
+ = note: required because it appears within the type `A`
= note: required by `std::pin::Pin::<P>::new`
-error[E0599]: no method named `project` found for struct `std::pin::Pin<&mut Foo>` in the current scope
- --> $DIR/remove-attr-from-struct.rs:26:31
+error[E0599]: no method named `project` found for struct `std::pin::Pin<&mut A>` in the current scope
+ --> $DIR/remove-attr-from-struct.rs:39:30
|
-26 | let _x = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
- | ^^^^^^^ method not found in `std::pin::Pin<&mut Foo>`
+39 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
+ | ^^^^^^^ method not found in `std::pin::Pin<&mut A>`
error[E0277]: `std::marker::PhantomPinned` cannot be unpinned
- --> $DIR/remove-attr-from-struct.rs:29:14
+ --> $DIR/remove-attr-from-struct.rs:42:13
|
-29 | let _x = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
- | ^^^^^^^^ within `Bar`, the trait `std::marker::Unpin` is not implemented for `std::marker::PhantomPinned`
+42 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
+ | ^^^^^^^^ within `B`, the trait `std::marker::Unpin` is not implemented for `std::marker::PhantomPinned`
|
- = note: required because it appears within the type `Bar`
+ = note: required because it appears within the type `B`
= note: required by `std::pin::Pin::<P>::new`
-error[E0599]: no method named `project` found for struct `std::pin::Pin<&mut Bar>` in the current scope
- --> $DIR/remove-attr-from-struct.rs:29:31
+error[E0599]: no method named `project` found for struct `std::pin::Pin<&mut B>` in the current scope
+ --> $DIR/remove-attr-from-struct.rs:42:30
|
-29 | let _x = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
- | ^^^^^^^ method not found in `std::pin::Pin<&mut Bar>`
+42 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
+ | ^^^^^^^ method not found in `std::pin::Pin<&mut B>`