Debian Codegraph @

third_party/rust/pin-project/tests/ui/unsafe_unpin/conflict-unpin.stderr

raw
1 error[E0119]: conflicting implementations of trait `Unpin` for type `Foo<_, _>`
2 --> tests/ui/unsafe_unpin/conflict-unpin.rs:3:15
3 |
4 3 | #[pin_project(UnsafeUnpin)] //~ ERROR E0119
5 | ^^^^^^^^^^^ conflicting implementation for `Foo<_, _>`
6 ...
7 10 | 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
12 error[E0119]: conflicting implementations of trait `Unpin` for type `Bar<_, _>`
13 --> tests/ui/unsafe_unpin/conflict-unpin.rs:12:15
14 |
15 12 | #[pin_project(UnsafeUnpin)] //~ ERROR E0119
16 | ^^^^^^^^^^^ conflicting implementation for `Bar<_, _>`
17 ...
18 19 | 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
23 error[E0119]: conflicting implementations of trait `Unpin` for type `Baz<_, _>`
24 --> tests/ui/unsafe_unpin/conflict-unpin.rs:21:15
25 |
26 21 | #[pin_project(UnsafeUnpin)] //~ ERROR E0119
27 | ^^^^^^^^^^^ conflicting implementation for `Baz<_, _>`
28 ...
29 28 | 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