diff options
Diffstat (limited to 'tests/ui/pin_project/add-attr-to-struct.stderr')
-rw-r--r-- | tests/ui/pin_project/add-attr-to-struct.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/pin_project/add-attr-to-struct.stderr b/tests/ui/pin_project/add-attr-to-struct.stderr new file mode 100644 index 0000000..27656d6 --- /dev/null +++ b/tests/ui/pin_project/add-attr-to-struct.stderr @@ -0,0 +1,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) |