blob: 27656d6657a759da94f45f45e6bacd4c8698a3d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error: duplicate #[pin] attribute
--> $DIR/add-attr-to-struct.rs:6:1
|
6 | #[add_pin_attr(struct)] //~ ERROR duplicate #[pin] attribute
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: #[pin] attribute may only be used on fields of structs or variants
--> $DIR/add-attr-to-struct.rs:12:1
|
12 | #[add_pin_attr(struct)] //~ ERROR #[pin] attribute may only be used on fields of structs or variants
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|