File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed
src/test/ui/manually_drop_attr Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 11#![ feature( manually_drop_attr) ]
22#![ forbid( unused_attributes) ]
33#![ manually_drop]
4- //~^ ERROR `manually_drop` attribute cannot be used at crate level
5- //~^^ ERROR attribute should be applied to a struct or enum
4+ //~^ ERROR attribute should be applied to a struct or enum
65
76#[ manually_drop]
87//~^ ERROR attribute should be applied to a struct or enum
Original file line number Diff line number Diff line change 11error: attribute should be applied to a struct or enum
2- --> $DIR/manually_drop-bad-item.rs:7 :1
2+ --> $DIR/manually_drop-bad-item.rs:6 :1
33 |
44LL | #[manually_drop]
55 | ^^^^^^^^^^^^^^^^
@@ -19,16 +19,5 @@ error: attribute should be applied to a struct or enum
1919LL | #![manually_drop]
2020 | ^^^^^^^^^^^^^^^^^
2121
22- error: `manually_drop` attribute cannot be used at crate level
23- --> $DIR/manually_drop-bad-item.rs:3:1
24- |
25- LL | #![manually_drop]
26- | ^^^^^^^^^^^^^^^^^
27- |
28- help: perhaps you meant to use an outer attribute
29- |
30- LL | #[manually_drop]
31- |
32-
33- error: aborting due to 3 previous errors
22+ error: aborting due to 2 previous errors
3423
You can’t perform that action at this time.
0 commit comments