aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/tests/ui/self.stderr
blob: aaf031573ccb900bbecc2f02cbf2cdc98099c5ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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