aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/tests/ui/self_ref.stderr
blob: dd205297755715125472293fb3a81c8ad1c32d79 (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_ref.rs:6:15
  |
6 | async fn task(&mut self) {}
  |               ^^^^^^^^^

error: `self` parameter is only allowed in associated functions
 --> tests/ui/self_ref.rs:6:15
  |
6 | async fn task(&mut self) {}
  |               ^^^^^^^^^ not semantically valid as function parameter
  |
  = note: associated functions are those in `impl` or `trait` definitions