aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/unsafe_unpin/conflict-unpin.stderr
blob: 20d4e0885be8190ff4da82f7777ca5438a6c393a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Foo<_, _>`
  --> tests/ui/unsafe_unpin/conflict-unpin.rs:3:15
   |
3  | #[pin_project(UnsafeUnpin)] //~ ERROR E0119
   |               ^^^^^^^^^^^ conflicting implementation for `Foo<_, _>`
...
10 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {}
   | --------------------------------------------- first implementation here
   |
   = note: upstream crates may add a new impl of trait `_::_pin_project::UnsafeUnpin` for type `_::_pin_project::__private::Wrapper<'_, Foo<_, _>>` in future versions

error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Bar<_, _>`
  --> tests/ui/unsafe_unpin/conflict-unpin.rs:12:15
   |
12 | #[pin_project(UnsafeUnpin)] //~ ERROR E0119
   |               ^^^^^^^^^^^ conflicting implementation for `Bar<_, _>`
...
19 | impl<T, U> Unpin for Bar<T, U> {}
   | ------------------------------ first implementation here
   |
   = note: upstream crates may add a new impl of trait `_::_pin_project::UnsafeUnpin` for type `_::_pin_project::__private::Wrapper<'_, Bar<_, _>>` in future versions

error[E0119]: conflicting implementations of trait `std::marker::Unpin` for type `Baz<_, _>`
  --> tests/ui/unsafe_unpin/conflict-unpin.rs:21:15
   |
21 | #[pin_project(UnsafeUnpin)] //~ ERROR E0119
   |               ^^^^^^^^^^^ conflicting implementation for `Baz<_, _>`
...
28 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {}
   | -------------------------------------------- first implementation here
   |
   = note: upstream crates may add a new impl of trait `_::_pin_project::UnsafeUnpin` for type `_::_pin_project::__private::Wrapper<'_, Baz<_, _>>` in future versions