Debian Codegraph @

debian/rust-vendor/pin-project-lite/tests/ui/not_unpin/conflict-unpin.stderr

raw
1 error[E0119]: conflicting implementations of trait `Unpin` for type `Foo<_, _>`
2 --> tests/ui/not_unpin/conflict-unpin.rs:5:1
3 |
4 5 | / pin_project! {
5 6 | | #[project(!Unpin)]
6 7 | | struct Foo<T, U> {
7 8 | | #[pin]
8 ... |
9 12 | | }
10 | |_^ conflicting implementation for `Foo<_, _>`
11 13 |
12 14 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {}
13 | --------------------------------------------- first implementation here
14 |
15 = note: upstream crates may add a new impl of trait `std::marker::Unpin` for type `(std::marker::PhantomData<&()>, std::marker::PhantomPinned)` in future versions
16 = note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
17
18 error[E0119]: conflicting implementations of trait `Unpin` for type `Bar<_, _>`
19 --> tests/ui/not_unpin/conflict-unpin.rs:16:1
20 |
21 16 | / pin_project! {
22 17 | | #[project(!Unpin)]
23 18 | | struct Bar<T, U> {
24 19 | | #[pin]
25 ... |
26 23 | | }
27 | |_^ conflicting implementation for `Bar<_, _>`
28 24 |
29 25 | impl<T, U> Unpin for Bar<T, U> {}
30 | ------------------------------ first implementation here
31 |
32 = note: upstream crates may add a new impl of trait `std::marker::Unpin` for type `(std::marker::PhantomData<&()>, std::marker::PhantomPinned)` in future versions
33 = note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
34
35 error[E0119]: conflicting implementations of trait `Unpin` for type `Baz<_, _>`
36 --> tests/ui/not_unpin/conflict-unpin.rs:27:1
37 |
38 27 | / pin_project! {
39 28 | | #[project(!Unpin)]
40 29 | | struct Baz<T, U> {
41 30 | | #[pin]
42 ... |
43 34 | | }
44 | |_^ conflicting implementation for `Baz<_, _>`
45 35 |
46 36 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {}
47 | -------------------------------------------- first implementation here
48 |
49 = note: upstream crates may add a new impl of trait `std::marker::Unpin` for type `(std::marker::PhantomData<&()>, std::marker::PhantomPinned)` in future versions
50 = note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)