summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/in-trait/bad-signatures.rs
blob: 4baddd8ccb8355508409baad2c324e18d54882cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// edition:2021
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
// revisions: current next

#![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() {}