]>
Commit | Line | Data |
---|---|---|
9c376795 FG |
1 | // edition:2021 |
2 | ||
3 | #![feature(async_fn_in_trait)] | |
9c376795 FG |
4 | |
5 | trait MyTrait { | |
6 | async fn bar(&abc self); | |
7 | //~^ ERROR expected identifier, found keyword `self` | |
8 | //~| ERROR expected one of `:`, `@`, or `|`, found keyword `self` | |
9 | } | |
10 | ||
11 | impl MyTrait for () { | |
12 | async fn bar(&self) {} | |
13 | } | |
14 | ||
15 | fn main() {} |