aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/add-attr-to-struct.stderr
blob: bb76c62d95b766aab830cfff0bba7b3d12995688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error: expected attribute arguments in parentheses: `pin(...)`
 --> tests/ui/pin_project/add-attr-to-struct.rs:7:1
  |
7 | #[add_pin_attr(struct)] //~ ERROR expected attribute arguments in parentheses
  | ^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in the attribute macro `add_pin_attr` (in Nightly builds, run with -Z macro-backtrace for more info)

error: #[pin] attribute may only be used on fields of structs or variants
  --> tests/ui/pin_project/add-attr-to-struct.rs:13:1
   |
13 | #[add_pin_attr(struct)] //~ ERROR #[pin] attribute may only be used on fields of structs or variants
   | ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the attribute macro `add_pin_attr` (in Nightly builds, run with -Z macro-backtrace for more info)