Debian Codegraph @

third_party/rust/pin-project/tests/ui/pin_project/add-attr-to-struct.stderr

raw
1 error: expected attribute arguments in parentheses: `pin(...)`
2 --> tests/ui/pin_project/add-attr-to-struct.rs:7:1
3 |
4 7 | #[add_pin_attr(struct)] //~ ERROR expected attribute arguments in parentheses
5 | ^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: this error originates in the attribute macro `add_pin_attr` (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 error: #[pin] attribute may only be used on fields of structs or variants
10 --> tests/ui/pin_project/add-attr-to-struct.rs:13:1
11 |
12 13 | #[add_pin_attr(struct)] //~ ERROR #[pin] attribute may only be used on fields of structs or variants
13 | ^^^^^^^^^^^^^^^^^^^^^^^
14 |
15 = note: this error originates in the attribute macro `add_pin_attr` (in Nightly builds, run with -Z macro-backtrace for more info)