mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-26 08:42:32 +00:00
14 lines
403 B
Plaintext
14 lines
403 B
Plaintext
error: task functions must not have `self` arguments
|
|
--> tests/ui/self.rs:6:15
|
|
|
|
|
6 | async fn task(self) {}
|
|
| ^^^^
|
|
|
|
error: `self` parameter is only allowed in associated functions
|
|
--> tests/ui/self.rs:6:15
|
|
|
|
|
6 | async fn task(self) {}
|
|
| ^^^^ not semantically valid as function parameter
|
|
|
|
|
= note: associated functions are those in `impl` or `trait` definitions
|