Skip to content

Commit 13bc9c9

Browse files
committed
Fix bad-item tests, which I apparently forgot to do
1 parent 5ae611d commit 13bc9c9

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

src/test/ui/manually_drop_attr/manually_drop-bad-item.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
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 numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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
33
|
44
LL | #[manually_drop]
55
| ^^^^^^^^^^^^^^^^
@@ -19,16 +19,5 @@ error: attribute should be applied to a struct or enum
1919
LL | #![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

0 commit comments

Comments
 (0)