File tree 2 files changed +3
-15
lines changed
src/test/ui/manually_drop_attr
2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( manually_drop_attr) ]
2
2
#![ forbid( unused_attributes) ]
3
3
#![ 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
6
5
7
6
#[ manually_drop]
8
7
//~^ ERROR attribute should be applied to a struct or enum
Original file line number Diff line number Diff line change 1
1
error: 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
3
3
|
4
4
LL | #[manually_drop]
5
5
| ^^^^^^^^^^^^^^^^
@@ -19,16 +19,5 @@ error: attribute should be applied to a struct or enum
19
19
LL | #![manually_drop]
20
20
| ^^^^^^^^^^^^^^^^^
21
21
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
34
23
You can’t perform that action at this time.
0 commit comments