Fix wording of misapplied must_not_suspend error
This commit is contained in:
parent
3a9bf45513
commit
df6cb954bb
4 changed files with 7 additions and 7 deletions
|
|
@ -1,10 +1,10 @@
|
|||
error: `must_not_suspend` attribute should be applied to a struct, enum, or trait
|
||||
error: `must_not_suspend` attribute should be applied to a struct, enum, union, or trait
|
||||
--> $DIR/other_items.rs:5:1
|
||||
|
|
||||
LL | #[must_not_suspend]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
LL | mod inner {}
|
||||
| ------------ is not a struct, enum, or trait
|
||||
| ------------ is not a struct, enum, union, or trait
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error: `must_not_suspend` attribute should be applied to a struct, enum, or trait
|
||||
error: `must_not_suspend` attribute should be applied to a struct, enum, union, or trait
|
||||
--> $DIR/return.rs:5:1
|
||||
|
|
||||
LL | #[must_not_suspend]
|
||||
|
|
@ -6,7 +6,7 @@ LL | #[must_not_suspend]
|
|||
LL | / fn foo() -> i32 {
|
||||
LL | | 0
|
||||
LL | | }
|
||||
| |_- is not a struct, enum, or trait
|
||||
| |_- is not a struct, enum, union, or trait
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue