| 1 |
error[E0119]: conflicting implementations of trait `Unpin` for type `Foo<MyPhantomPinned, ()>` |
| 2 |
--> tests/ui/pin_project/negative_impls_stable.rs:5:1 |
| 3 |
| |
| 4 |
5 | / pin_project_lite::pin_project! { |
| 5 |
6 | | struct Foo<Pinned, Unpinned> { |
| 6 |
7 | | #[pin] |
| 7 |
8 | | pinned: Pinned, |
| 8 |
... | |
| 9 |
11 | | } |
| 10 |
| |_^ conflicting implementation for `Foo<MyPhantomPinned, ()>` |
| 11 |
... |
| 12 |
15 | impl Unpin for Foo<MyPhantomPinned, ()> {} |
| 13 |
| --------------------------------------- first implementation here |
| 14 |
| |
| 15 |
= note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project_lite::pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) |