summaryrefslogtreecommitdiffstats
path: root/vendor/pin-project-lite/tests/ui/pin_project/conflict-unpin.stderr
blob: cf9818e08768465acc3fecd8dab94b51f12fdf28 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
error[E0119]: conflicting implementations of trait `Unpin` for type `Foo<_, _>`
  --> tests/ui/pin_project/conflict-unpin.rs:5:1
   |
5  | / pin_project! { //~ ERROR E0119
6  | |     struct Foo<T, U> {
7  | |         #[pin]
8  | |         future: T,
9  | |         field: U,
10 | |     }
11 | | }
   | |_^ conflicting implementation for `Foo<_, _>`
...
14 |   impl<T, U> Unpin for Foo<T, U> where T: Unpin {} // Conditional Unpin impl
   |   ------------------------------ first implementation here
   |
   = 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)

error[E0119]: conflicting implementations of trait `Unpin` for type `Bar<_, _>`
  --> tests/ui/pin_project/conflict-unpin.rs:18:1
   |
18 | / pin_project! { //~ ERROR E0119
19 | |     struct Bar<T, U> {
20 | |         #[pin]
21 | |         future: T,
22 | |         field: U,
23 | |     }
24 | | }
   | |_^ conflicting implementation for `Bar<_, _>`
...
27 |   impl<T, U> Unpin for Bar<T, U> {} // Non-conditional Unpin impl
   |   ------------------------------ first implementation here
   |
   = 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)

error[E0119]: conflicting implementations of trait `Unpin` for type `Baz<_, _>`
  --> tests/ui/pin_project/conflict-unpin.rs:29:1
   |
29 | / pin_project! { //~ ERROR E0119
30 | |     struct Baz<T, U> {
31 | |         #[pin]
32 | |         future: T,
33 | |         field: U,
34 | |     }
35 | | }
   | |_^ conflicting implementation for `Baz<_, _>`
...
38 |   impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {} // Conditional Unpin impl
   |   -------------------------------------------- first implementation here
   |
   = 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)

error[E0119]: conflicting implementations of trait `Unpin` for type `Qux<_, _>`
  --> tests/ui/pin_project/conflict-unpin.rs:40:1
   |
40 | / pin_project! { //~ ERROR E0119
41 | |     #[project(!Unpin)]
42 | |     struct Qux<T, U> {
43 | |         #[pin]
...  |
46 | |     }
47 | | }
   | |_^ conflicting implementation for `Qux<_, _>`
...
50 |   impl<T, U> Unpin for Qux<T, U> {} // Non-conditional Unpin impl
   |   ------------------------------ first implementation here
   |
   = 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)

error[E0119]: conflicting implementations of trait `Unpin` for type `Fred<_, _>`
  --> tests/ui/pin_project/conflict-unpin.rs:52:1
   |
52 | / pin_project! { //~ ERROR E0119
53 | |     #[project(!Unpin)]
54 | |     struct Fred<T, U> {
55 | |         #[pin]
...  |
58 | |     }
59 | | }
   | |_^ conflicting implementation for `Fred<_, _>`
...
62 |   impl<T: Unpin, U: Unpin> Unpin for Fred<T, U> {} // Conditional Unpin impl
   |   --------------------------------------------- first implementation here
   |
   = 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)