Debian Codegraph @

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

raw
1 error[E0119]: conflicting implementations of trait `Unpin` for type `Foo<_, _>`
2 --> tests/ui/pin_project/conflict-unpin.rs:5:1
3 |
4 5 | #[pin_project] //~ ERROR E0119
5 | ^^^^^^^^^^^^^^ conflicting implementation for `Foo<_, _>`
6 ...
7 13 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {} // Conditional Unpin impl
8 | ------------------------------ first implementation here
9 |
10 = note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
11
12 error[E0119]: conflicting implementations of trait `Unpin` for type `Bar<_, _>`
13 --> tests/ui/pin_project/conflict-unpin.rs:17:1
14 |
15 17 | #[pin_project] //~ ERROR E0119
16 | ^^^^^^^^^^^^^^ conflicting implementation for `Bar<_, _>`
17 ...
18 25 | impl<T, U> Unpin for Bar<T, U> {} // Non-conditional Unpin impl
19 | ------------------------------ first implementation here
20 |
21 = note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23 error[E0119]: conflicting implementations of trait `Unpin` for type `Baz<_, _>`
24 --> tests/ui/pin_project/conflict-unpin.rs:27:1
25 |
26 27 | #[pin_project] //~ ERROR E0119
27 | ^^^^^^^^^^^^^^ conflicting implementation for `Baz<_, _>`
28 ...
29 35 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {} // Conditional Unpin impl
30 | -------------------------------------------- first implementation here
31 |
32 = note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)