• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: expected attribute arguments in parentheses: `pin(...)`
2 --> tests/ui/pin_project/add-attr-to-struct.rs:9:1
3  |
49 | #[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
9error: #[pin] attribute may only be used on fields of structs or variants
10  --> tests/ui/pin_project/add-attr-to-struct.rs:15:1
11   |
1215 | #[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)
16