| 1 |
error[E0119]: conflicting implementations of trait `Unpin` for type `Foo<_, _>` |
| 2 |
--> tests/ui/pin_project/conflict-unpin.rs:7:1 |
| 3 |
| |
| 4 |
7 | / pin_project! { //~ ERROR E0119 |
| 5 |
8 | | struct Foo<T, U> { |
| 6 |
9 | | #[pin] |
| 7 |
10 | | future: T, |
| 8 |
11 | | field: U, |
| 9 |
12 | | } |
| 10 |
13 | | } |
| 11 |
| |_^ conflicting implementation for `Foo<_, _>` |
| 12 |
... |
| 13 |
16 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {} // Conditional Unpin impl |
| 14 |
| --------------------------------------------- first implementation here |
| 15 |
| |
| 16 |
= note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 17 |
|
| 18 |
error[E0119]: conflicting implementations of trait `Unpin` for type `Bar<_, _>` |
| 19 |
--> tests/ui/pin_project/conflict-unpin.rs:20:1 |
| 20 |
| |
| 21 |
20 | / pin_project! { //~ ERROR E0119 |
| 22 |
21 | | struct Bar<T, U> { |
| 23 |
22 | | #[pin] |
| 24 |
23 | | future: T, |
| 25 |
24 | | field: U, |
| 26 |
25 | | } |
| 27 |
26 | | } |
| 28 |
| |_^ conflicting implementation for `Bar<_, _>` |
| 29 |
... |
| 30 |
29 | impl<T, U> Unpin for Bar<T, U> {} // Non-conditional Unpin impl |
| 31 |
| ------------------------------ first implementation here |
| 32 |
| |
| 33 |
= note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 34 |
|
| 35 |
error[E0119]: conflicting implementations of trait `Unpin` for type `Baz<_, _>` |
| 36 |
--> tests/ui/pin_project/conflict-unpin.rs:31:1 |
| 37 |
| |
| 38 |
31 | / pin_project! { //~ ERROR E0119 |
| 39 |
32 | | struct Baz<T, U> { |
| 40 |
33 | | #[pin] |
| 41 |
34 | | future: T, |
| 42 |
35 | | field: U, |
| 43 |
36 | | } |
| 44 |
37 | | } |
| 45 |
| |_^ conflicting implementation for `Baz<_, _>` |
| 46 |
... |
| 47 |
40 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {} // Conditional Unpin impl |
| 48 |
| -------------------------------------------- first implementation here |
| 49 |
| |
| 50 |
= note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 51 |
|
| 52 |
error[E0119]: conflicting implementations of trait `Unpin` for type `Qux<_, _>` |
| 53 |
--> tests/ui/pin_project/conflict-unpin.rs:42:1 |
| 54 |
| |
| 55 |
42 | / pin_project! { //~ ERROR E0119 |
| 56 |
43 | | #[project(!Unpin)] |
| 57 |
44 | | struct Qux<T, U> { |
| 58 |
45 | | #[pin] |
| 59 |
... | |
| 60 |
48 | | } |
| 61 |
49 | | } |
| 62 |
| |_^ conflicting implementation for `Qux<_, _>` |
| 63 |
... |
| 64 |
52 | impl<T, U> Unpin for Qux<T, U> {} // Non-conditional Unpin impl |
| 65 |
| ------------------------------ first implementation here |
| 66 |
| |
| 67 |
= note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 68 |
|
| 69 |
error[E0119]: conflicting implementations of trait `Unpin` for type `Fred<_, _>` |
| 70 |
--> tests/ui/pin_project/conflict-unpin.rs:54:1 |
| 71 |
| |
| 72 |
54 | / pin_project! { //~ ERROR E0119 |
| 73 |
55 | | #[project(!Unpin)] |
| 74 |
56 | | struct Fred<T, U> { |
| 75 |
57 | | #[pin] |
| 76 |
... | |
| 77 |
60 | | } |
| 78 |
61 | | } |
| 79 |
| |_^ conflicting implementation for `Fred<_, _>` |
| 80 |
... |
| 81 |
64 | impl<T: Unpin, U: Unpin> Unpin for Fred<T, U> {} // Conditional Unpin impl |
| 82 |
| --------------------------------------------- first implementation here |
| 83 |
| |
| 84 |
= note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) |