27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Foo<_, _>`
|
|
--> tests/ui/not_unpin/conflict-unpin.rs:3:15
|
|
|
|
|
3 | #[pin_project(!Unpin)] //~ ERROR E0119
|
|
| ^^^^^^ conflicting implementation for `Foo<_, _>`
|
|
...
|
|
10 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {}
|
|
| --------------------------------------------- first implementation here
|
|
|
|
error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Bar<_, _>`
|
|
--> tests/ui/not_unpin/conflict-unpin.rs:12:15
|
|
|
|
|
12 | #[pin_project(!Unpin)] //~ ERROR E0119
|
|
| ^^^^^^ conflicting implementation for `Bar<_, _>`
|
|
...
|
|
19 | impl<T, U> Unpin for Bar<T, U> {}
|
|
| ------------------------------ first implementation here
|
|
|
|
error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Baz<_, _>`
|
|
--> tests/ui/not_unpin/conflict-unpin.rs:21:15
|
|
|
|
|
21 | #[pin_project(!Unpin)] //~ ERROR E0119
|
|
| ^^^^^^ conflicting implementation for `Baz<_, _>`
|
|
...
|
|
28 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {}
|
|
| -------------------------------------------- first implementation here
|