blob: 07b9513d51bdb0526a5fae8b58a04b5851457294 [file]
error: the `coroutine` attribute cannot be used on structs
--> $DIR/invalid_attr_usage.rs:5:3
|
LL | #[coroutine]
| ^^^^^^^^^
LL |
LL | struct Foo;
|
= help: the `coroutine` attribute can only be applied to closures
error: the `coroutine` attribute cannot be used on functions
--> $DIR/invalid_attr_usage.rs:9:3
|
LL | #[coroutine]
| ^^^^^^^^^
LL |
LL | fn main() {}
|
= help: the `coroutine` attribute can only be applied to closures
error: aborting due to 2 previous errors