|
1 | 1 | error[E0277]: `PhantomPinned` cannot be unpinned |
2 | | - --> $DIR/assert-not-unpin.rs:31:5 |
| 2 | + --> tests/ui/not_unpin/assert-not-unpin.rs:31:5 |
3 | 3 | | |
4 | | -28 | fn is_unpin<T: Unpin>() {} |
5 | | - | ----- required by this bound in `is_unpin` |
6 | | -... |
7 | 4 | 31 | is_unpin::<Foo<(), ()>>(); //~ ERROR E0277 |
8 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^ within `Wrapper<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned` |
9 | 6 | | |
| 7 | + = note: consider using `Box::pin` |
10 | 8 | = note: required because it appears within the type `Wrapper<'_, PhantomPinned>` |
11 | | - = note: required because of the requirements on the impl of `Unpin` for `Foo<(), ()>` |
| 9 | +note: required because of the requirements on the impl of `Unpin` for `Foo<(), ()>` |
| 10 | + --> tests/ui/not_unpin/assert-not-unpin.rs:8:15 |
| 11 | + | |
| 12 | +8 | #[pin_project(!Unpin)] |
| 13 | + | ^^^^^^ |
| 14 | +9 | struct Foo<T, U> { |
| 15 | + | ^^^^^^^^^ |
| 16 | +note: required by a bound in `is_unpin` |
| 17 | + --> tests/ui/not_unpin/assert-not-unpin.rs:28:16 |
| 18 | + | |
| 19 | +28 | fn is_unpin<T: Unpin>() {} |
| 20 | + | ^^^^^ required by this bound in `is_unpin` |
12 | 21 |
|
13 | 22 | error[E0277]: `PhantomPinned` cannot be unpinned |
14 | | - --> $DIR/assert-not-unpin.rs:32:5 |
| 23 | + --> tests/ui/not_unpin/assert-not-unpin.rs:32:5 |
15 | 24 | | |
16 | | -28 | fn is_unpin<T: Unpin>() {} |
17 | | - | ----- required by this bound in `is_unpin` |
18 | | -... |
19 | 25 | 32 | is_unpin::<Foo<PhantomPinned, ()>>(); //~ ERROR E0277 |
20 | 26 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Wrapper<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned` |
21 | 27 | | |
| 28 | + = note: consider using `Box::pin` |
22 | 29 | = note: required because it appears within the type `Wrapper<'_, PhantomPinned>` |
23 | | - = note: required because of the requirements on the impl of `Unpin` for `Foo<PhantomPinned, ()>` |
| 30 | +note: required because of the requirements on the impl of `Unpin` for `Foo<PhantomPinned, ()>` |
| 31 | + --> tests/ui/not_unpin/assert-not-unpin.rs:8:15 |
| 32 | + | |
| 33 | +8 | #[pin_project(!Unpin)] |
| 34 | + | ^^^^^^ |
| 35 | +9 | struct Foo<T, U> { |
| 36 | + | ^^^^^^^^^ |
| 37 | +note: required by a bound in `is_unpin` |
| 38 | + --> tests/ui/not_unpin/assert-not-unpin.rs:28:16 |
| 39 | + | |
| 40 | +28 | fn is_unpin<T: Unpin>() {} |
| 41 | + | ^^^^^ required by this bound in `is_unpin` |
24 | 42 |
|
25 | 43 | error[E0277]: `PhantomPinned` cannot be unpinned |
26 | | - --> $DIR/assert-not-unpin.rs:33:5 |
| 44 | + --> tests/ui/not_unpin/assert-not-unpin.rs:33:5 |
27 | 45 | | |
28 | | -28 | fn is_unpin<T: Unpin>() {} |
29 | | - | ----- required by this bound in `is_unpin` |
30 | | -... |
31 | 46 | 33 | is_unpin::<Foo<(), PhantomPinned>>(); //~ ERROR E0277 |
32 | 47 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Wrapper<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned` |
33 | 48 | | |
| 49 | + = note: consider using `Box::pin` |
34 | 50 | = note: required because it appears within the type `Wrapper<'_, PhantomPinned>` |
35 | | - = note: required because of the requirements on the impl of `Unpin` for `Foo<(), PhantomPinned>` |
| 51 | +note: required because of the requirements on the impl of `Unpin` for `Foo<(), PhantomPinned>` |
| 52 | + --> tests/ui/not_unpin/assert-not-unpin.rs:8:15 |
| 53 | + | |
| 54 | +8 | #[pin_project(!Unpin)] |
| 55 | + | ^^^^^^ |
| 56 | +9 | struct Foo<T, U> { |
| 57 | + | ^^^^^^^^^ |
| 58 | +note: required by a bound in `is_unpin` |
| 59 | + --> tests/ui/not_unpin/assert-not-unpin.rs:28:16 |
| 60 | + | |
| 61 | +28 | fn is_unpin<T: Unpin>() {} |
| 62 | + | ^^^^^ required by this bound in `is_unpin` |
36 | 63 |
|
37 | 64 | error[E0277]: `PhantomPinned` cannot be unpinned |
38 | | - --> $DIR/assert-not-unpin.rs:34:5 |
| 65 | + --> tests/ui/not_unpin/assert-not-unpin.rs:34:5 |
39 | 66 | | |
40 | | -28 | fn is_unpin<T: Unpin>() {} |
41 | | - | ----- required by this bound in `is_unpin` |
42 | | -... |
43 | 67 | 34 | is_unpin::<Foo<PhantomPinned, PhantomPinned>>(); //~ ERROR E0277 |
44 | 68 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Wrapper<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned` |
45 | 69 | | |
| 70 | + = note: consider using `Box::pin` |
46 | 71 | = note: required because it appears within the type `Wrapper<'_, PhantomPinned>` |
47 | | - = note: required because of the requirements on the impl of `Unpin` for `Foo<PhantomPinned, PhantomPinned>` |
| 72 | +note: required because of the requirements on the impl of `Unpin` for `Foo<PhantomPinned, PhantomPinned>` |
| 73 | + --> tests/ui/not_unpin/assert-not-unpin.rs:8:15 |
| 74 | + | |
| 75 | +8 | #[pin_project(!Unpin)] |
| 76 | + | ^^^^^^ |
| 77 | +9 | struct Foo<T, U> { |
| 78 | + | ^^^^^^^^^ |
| 79 | +note: required by a bound in `is_unpin` |
| 80 | + --> tests/ui/not_unpin/assert-not-unpin.rs:28:16 |
| 81 | + | |
| 82 | +28 | fn is_unpin<T: Unpin>() {} |
| 83 | + | ^^^^^ required by this bound in `is_unpin` |
48 | 84 |
|
49 | 85 | error[E0277]: `PhantomPinned` cannot be unpinned |
50 | | - --> $DIR/assert-not-unpin.rs:36:5 |
| 86 | + --> tests/ui/not_unpin/assert-not-unpin.rs:36:5 |
51 | 87 | | |
52 | | -28 | fn is_unpin<T: Unpin>() {} |
53 | | - | ----- required by this bound in `is_unpin` |
54 | | -... |
55 | 88 | 36 | is_unpin::<TrivialBounds>(); //~ ERROR E0277 |
56 | 89 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ within `Wrapper<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned` |
57 | 90 | | |
| 91 | + = note: consider using `Box::pin` |
58 | 92 | = note: required because it appears within the type `Wrapper<'_, PhantomPinned>` |
59 | | - = note: required because of the requirements on the impl of `Unpin` for `TrivialBounds` |
| 93 | +note: required because of the requirements on the impl of `Unpin` for `TrivialBounds` |
| 94 | + --> tests/ui/not_unpin/assert-not-unpin.rs:15:15 |
| 95 | + | |
| 96 | +15 | #[pin_project(!Unpin)] |
| 97 | + | ^^^^^^ |
| 98 | +16 | struct TrivialBounds { |
| 99 | + | ^^^^^^^^^^^^^ |
| 100 | +note: required by a bound in `is_unpin` |
| 101 | + --> tests/ui/not_unpin/assert-not-unpin.rs:28:16 |
| 102 | + | |
| 103 | +28 | fn is_unpin<T: Unpin>() {} |
| 104 | + | ^^^^^ required by this bound in `is_unpin` |
60 | 105 |
|
61 | 106 | error[E0277]: `PhantomPinned` cannot be unpinned |
62 | | - --> $DIR/assert-not-unpin.rs:38:5 |
| 107 | + --> tests/ui/not_unpin/assert-not-unpin.rs:38:5 |
63 | 108 | | |
64 | | -28 | fn is_unpin<T: Unpin>() {} |
65 | | - | ----- required by this bound in `is_unpin` |
66 | | -... |
67 | 109 | 38 | is_unpin::<Bar<'_, (), ()>>(); //~ ERROR E0277 |
68 | 110 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Wrapper<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned` |
69 | 111 | | |
| 112 | + = note: consider using `Box::pin` |
70 | 113 | = note: required because it appears within the type `Wrapper<'_, PhantomPinned>` |
71 | | - = note: required because of the requirements on the impl of `Unpin` for `Bar<'_, (), ()>` |
| 114 | +note: required because of the requirements on the impl of `Unpin` for `Bar<'_, (), ()>` |
| 115 | + --> tests/ui/not_unpin/assert-not-unpin.rs:21:15 |
| 116 | + | |
| 117 | +21 | #[pin_project(!Unpin)] |
| 118 | + | ^^^^^^ |
| 119 | +22 | struct Bar<'a, T, U> { |
| 120 | + | ^^^^^^^^^^^^^ |
| 121 | +note: required by a bound in `is_unpin` |
| 122 | + --> tests/ui/not_unpin/assert-not-unpin.rs:28:16 |
| 123 | + | |
| 124 | +28 | fn is_unpin<T: Unpin>() {} |
| 125 | + | ^^^^^ required by this bound in `is_unpin` |
72 | 126 |
|
73 | 127 | error[E0277]: `PhantomPinned` cannot be unpinned |
74 | | - --> $DIR/assert-not-unpin.rs:39:5 |
| 128 | + --> tests/ui/not_unpin/assert-not-unpin.rs:39:5 |
75 | 129 | | |
76 | | -28 | fn is_unpin<T: Unpin>() {} |
77 | | - | ----- required by this bound in `is_unpin` |
78 | | -... |
79 | 130 | 39 | is_unpin::<Bar<'_, PhantomPinned, PhantomPinned>>(); //~ ERROR E0277 |
80 | 131 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Wrapper<'_, PhantomPinned>`, the trait `Unpin` is not implemented for `PhantomPinned` |
81 | 132 | | |
| 133 | + = note: consider using `Box::pin` |
82 | 134 | = note: required because it appears within the type `Wrapper<'_, PhantomPinned>` |
83 | | - = note: required because of the requirements on the impl of `Unpin` for `Bar<'_, PhantomPinned, PhantomPinned>` |
| 135 | +note: required because of the requirements on the impl of `Unpin` for `Bar<'_, PhantomPinned, PhantomPinned>` |
| 136 | + --> tests/ui/not_unpin/assert-not-unpin.rs:21:15 |
| 137 | + | |
| 138 | +21 | #[pin_project(!Unpin)] |
| 139 | + | ^^^^^^ |
| 140 | +22 | struct Bar<'a, T, U> { |
| 141 | + | ^^^^^^^^^^^^^ |
| 142 | +note: required by a bound in `is_unpin` |
| 143 | + --> tests/ui/not_unpin/assert-not-unpin.rs:28:16 |
| 144 | + | |
| 145 | +28 | fn is_unpin<T: Unpin>() {} |
| 146 | + | ^^^^^ required by this bound in `is_unpin` |
0 commit comments