• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Foo<_, _>`:
2  --> $DIR/conflict-unpin.rs:3:15
3   |
43  | #[pin_project(UnsafeUnpin)] //~ ERROR E0119
5   |               ^^^^^^^^^^^ conflicting implementation for `Foo<_, _>`
6...
710 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {}
8   | --------------------------------------------- first implementation here
9   |
10   = note: upstream crates may add a new impl of trait `pin_project::UnsafeUnpin` for type `pin_project::__private::Wrapper<'_, Foo<_, _>>` in future versions
11
12error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Bar<_, _>`:
13  --> $DIR/conflict-unpin.rs:12:15
14   |
1512 | #[pin_project(UnsafeUnpin)] //~ ERROR E0119
16   |               ^^^^^^^^^^^ conflicting implementation for `Bar<_, _>`
17...
1819 | impl<T, U> Unpin for Bar<T, U> {}
19   | ------------------------------ first implementation here
20   |
21   = note: upstream crates may add a new impl of trait `pin_project::UnsafeUnpin` for type `pin_project::__private::Wrapper<'_, Bar<_, _>>` in future versions
22
23error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Baz<_, _>`:
24  --> $DIR/conflict-unpin.rs:21:15
25   |
2621 | #[pin_project(UnsafeUnpin)] //~ ERROR E0119
27   |               ^^^^^^^^^^^ conflicting implementation for `Baz<_, _>`
28...
2928 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {}
30   | -------------------------------------------- first implementation here
31   |
32   = note: upstream crates may add a new impl of trait `pin_project::UnsafeUnpin` for type `pin_project::__private::Wrapper<'_, Baz<_, _>>` in future versions
33