Files
rust/tests/ui/coroutine/invalid_attr_usage.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
444 B
Plaintext
Raw Normal View History

error: `#[coroutine]` attribute cannot be used on structs
2024-08-01 10:03:10 +00:00
--> $DIR/invalid_attr_usage.rs:5:1
|
LL | #[coroutine]
| ^^^^^^^^^^^^
|
= help: `#[coroutine]` can only be applied to closures
2024-08-01 10:03:10 +00:00
error: `#[coroutine]` attribute cannot be used on functions
2024-08-01 10:03:10 +00:00
--> $DIR/invalid_attr_usage.rs:9:1
|
LL | #[coroutine]
| ^^^^^^^^^^^^
|
= help: `#[coroutine]` can only be applied to closures
2024-08-01 10:03:10 +00:00
error: aborting due to 2 previous errors