| 1 |
error[E0119]: conflicting implementations of trait `UnsafeUnpin` for type `Foo<_, _>` |
| 2 |
--> tests/ui/not_unpin/impl-unsafe-unpin.rs:3:1 |
| 3 |
| |
| 4 |
3 | #[pin_project(!Unpin)] //~ ERROR E0119 |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Foo<_, _>` |
| 6 |
... |
| 7 |
10 | unsafe impl<T, U> UnsafeUnpin for Foo<T, U> where T: Unpin {} |
| 8 |
| ------------------------------------------- first implementation here |
| 9 |
| |
| 10 |
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 11 |
|
| 12 |
error[E0119]: conflicting implementations of trait `UnsafeUnpin` for type `Bar<_, _>` |
| 13 |
--> tests/ui/not_unpin/impl-unsafe-unpin.rs:12:1 |
| 14 |
| |
| 15 |
12 | #[pin_project(!Unpin)] //~ ERROR E0119 |
| 16 |
| ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Bar<_, _>` |
| 17 |
... |
| 18 |
19 | unsafe impl<T, U> UnsafeUnpin for Bar<T, U> {} |
| 19 |
| ------------------------------------------- first implementation here |
| 20 |
| |
| 21 |
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 22 |
|
| 23 |
error[E0119]: conflicting implementations of trait `UnsafeUnpin` for type `Baz<_, _>` |
| 24 |
--> tests/ui/not_unpin/impl-unsafe-unpin.rs:21:1 |
| 25 |
| |
| 26 |
21 | #[pin_project(!Unpin)] //~ ERROR E0119 |
| 27 |
| ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Baz<_, _>` |
| 28 |
... |
| 29 |
28 | unsafe impl<T: Unpin, U: Unpin> UnsafeUnpin for Baz<T, U> {} |
| 30 |
| --------------------------------------------------------- first implementation here |
| 31 |
| |
| 32 |
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info) |