You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/pin_project/add-pinned-field.stderr
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,19 @@ note: required because it appears within the type `__Foo<'_>`
12
12
10 | struct Foo {
13
13
| ^^^
14
14
note: required for `Foo` to implement `Unpin`
15
-
--> tests/ui/pin_project/add-pinned-field.rs:8:1
15
+
--> tests/ui/pin_project/add-pinned-field.rs:10:8
16
16
|
17
17
8 | #[pin_project]
18
-
| ^^^^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
18
+
| -------------- type parameter would need to implement `Unpin`
19
19
9 | #[add_pinned_field]
20
20
10 | struct Foo {
21
21
| ^^^
22
+
= help: consider manually implementing `Unpin` to avoid undesired bounds
22
23
note: required by a bound in `is_unpin`
23
24
--> tests/ui/pin_project/add-pinned-field.rs:6:16
24
25
|
25
26
6 | fn is_unpin<T: Unpin>() {}
26
27
| ^^^^^ required by this bound in `is_unpin`
27
-
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -40,15 +40,15 @@ note: required because it appears within the type `__Bar<'_>`
40
40
17 | struct Bar {
41
41
| ^^^
42
42
note: required for `Bar` to implement `Unpin`
43
-
--> tests/ui/pin_project/add-pinned-field.rs:16:1
43
+
--> tests/ui/pin_project/add-pinned-field.rs:17:8
44
44
|
45
45
16 | #[pin_project]
46
-
| ^^^^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
46
+
| -------------- type parameter would need to implement `Unpin`
47
47
17 | struct Bar {
48
48
| ^^^
49
+
= help: consider manually implementing `Unpin` to avoid undesired bounds
49
50
note: required by a bound in `is_unpin`
50
51
--> tests/ui/pin_project/add-pinned-field.rs:6:16
51
52
|
52
53
6 | fn is_unpin<T: Unpin>() {}
53
54
| ^^^^^ required by this bound in `is_unpin`
54
-
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments