|
1 | 1 | error: The field `pin1` of type `PhantomPinned` only has an effect, if it has the `#[pin]` attribute.
|
2 |
| - --> tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.rs:6:1 |
| 2 | + --> tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.rs:4:1 |
3 | 3 | |
|
4 |
| -6 | #[pin_data] |
| 4 | +4 | #[pin_data] |
5 | 5 | | ^^^^^^^^^^^
|
6 | 6 | |
|
7 | 7 | = note: this error originates in the macro `$crate::__pin_data` which comes from the expansion of the attribute macro `pin_data` (in Nightly builds, run with -Z macro-backtrace for more info)
|
8 | 8 |
|
9 | 9 | error: The field `pin2` of type `PhantomPinned` only has an effect, if it has the `#[pin]` attribute.
|
10 |
| - --> tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.rs:6:1 |
| 10 | + --> tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.rs:4:1 |
11 | 11 | |
|
12 |
| -6 | #[pin_data] |
| 12 | +4 | #[pin_data] |
13 | 13 | | ^^^^^^^^^^^
|
14 | 14 | |
|
15 | 15 | = note: this error originates in the macro `$crate::__pin_data` which comes from the expansion of the attribute macro `pin_data` (in Nightly builds, run with -Z macro-backtrace for more info)
|
16 | 16 |
|
17 | 17 | error: The field `pin3` of type `PhantomPinned` only has an effect, if it has the `#[pin]` attribute.
|
18 |
| - --> tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.rs:6:1 |
| 18 | + --> tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.rs:4:1 |
19 | 19 | |
|
20 |
| -6 | #[pin_data] |
| 20 | +4 | #[pin_data] |
21 | 21 | | ^^^^^^^^^^^
|
22 | 22 | |
|
23 | 23 | = note: this error originates in the macro `$crate::__pin_data` which comes from the expansion of the attribute macro `pin_data` (in Nightly builds, run with -Z macro-backtrace for more info)
|
24 | 24 |
|
25 | 25 | error: The field `pin4` of type `PhantomPinned` only has an effect, if it has the `#[pin]` attribute.
|
26 |
| - --> tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.rs:6:1 |
| 26 | + --> tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.rs:4:1 |
27 | 27 | |
|
28 |
| -6 | #[pin_data] |
| 28 | +4 | #[pin_data] |
29 | 29 | | ^^^^^^^^^^^
|
30 | 30 | |
|
31 | 31 | = note: this error originates in the macro `$crate::__pin_data` which comes from the expansion of the attribute macro `pin_data` (in Nightly builds, run with -Z macro-backtrace for more info)
|
32 | 32 |
|
33 | 33 | warning: unused imports: `PhantomPinned`, `self`
|
34 |
| - --> tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.rs:3:20 |
| 34 | + --> tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.rs:2:19 |
35 | 35 | |
|
36 |
| -3 | use core::marker::{self, PhantomPinned}; |
37 |
| - | ^^^^ ^^^^^^^^^^^^^ |
| 36 | +2 | use std::marker::{self, PhantomPinned}; |
| 37 | + | ^^^^ ^^^^^^^^^^^^^ |
38 | 38 | |
|
39 | 39 | = note: `#[warn(unused_imports)]` on by default
|
0 commit comments