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