Debian Codegraph @

debian/rust-vendor/pin-project-lite/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:7:1
3 |
4 7 | / pin_project! { //~ ERROR E0119
5 8 | | struct Foo<T, U> {
6 9 | | #[pin]
7 10 | | future: T,
8 ... |
9 13 | | }
10 | |_^ conflicting implementation for `Foo<_, _>`
11 ...
12 16 | impl<T, U> Unpin for Foo<T, U> where T: Unpin {} // Conditional Unpin impl
13 | --------------------------------------------- first implementation here
14 |
15 = 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)
16
17 error[E0119]: conflicting implementations of trait `Unpin` for type `Bar<_, _>`
18 --> tests/ui/pin_project/conflict-unpin.rs:20:1
19 |
20 20 | / pin_project! { //~ ERROR E0119
21 21 | | struct Bar<T, U> {
22 22 | | #[pin]
23 23 | | future: T,
24 ... |
25 26 | | }
26 | |_^ conflicting implementation for `Bar<_, _>`
27 ...
28 29 | impl<T, U> Unpin for Bar<T, U> {} // Non-conditional Unpin impl
29 | ------------------------------ first implementation here
30 |
31 = 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)
32
33 error[E0119]: conflicting implementations of trait `Unpin` for type `Baz<_, _>`
34 --> tests/ui/pin_project/conflict-unpin.rs:31:1
35 |
36 31 | / pin_project! { //~ ERROR E0119
37 32 | | struct Baz<T, U> {
38 33 | | #[pin]
39 34 | | future: T,
40 ... |
41 37 | | }
42 | |_^ conflicting implementation for `Baz<_, _>`
43 ...
44 40 | impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {} // Conditional Unpin impl
45 | -------------------------------------------- first implementation here
46 |
47 = 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)
48
49 error[E0119]: conflicting implementations of trait `Unpin` for type `Qux<_, _>`
50 --> tests/ui/pin_project/conflict-unpin.rs:42:1
51 |
52 42 | / pin_project! { //~ ERROR E0119
53 43 | | #[project(!Unpin)]
54 44 | | struct Qux<T, U> {
55 45 | | #[pin]
56 ... |
57 49 | | }
58 | |_^ conflicting implementation for `Qux<_, _>`
59 ...
60 52 | impl<T, U> Unpin for Qux<T, U> {} // Non-conditional Unpin impl
61 | ------------------------------ first implementation here
62 |
63 = note: upstream crates may add a new impl of trait `std::marker::Unpin` for type `(std::marker::PhantomData<&()>, std::marker::PhantomPinned)` in future versions
64 = 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)
65
66 error[E0119]: conflicting implementations of trait `Unpin` for type `Fred<_, _>`
67 --> tests/ui/pin_project/conflict-unpin.rs:54:1
68 |
69 54 | / pin_project! { //~ ERROR E0119
70 55 | | #[project(!Unpin)]
71 56 | | struct Fred<T, U> {
72 57 | | #[pin]
73 ... |
74 61 | | }
75 | |_^ conflicting implementation for `Fred<_, _>`
76 ...
77 64 | impl<T: Unpin, U: Unpin> Unpin for Fred<T, U> {} // Conditional Unpin impl
78 | --------------------------------------------- first implementation here
79 |
80 = note: upstream crates may add a new impl of trait `std::marker::Unpin` for type `(std::marker::PhantomData<&()>, std::marker::PhantomPinned)` in future versions
81 = 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)