]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/in-trait/bad-signatures.rs
Rollup merge of #107186 - GuillaumeGomez:correct-pseudo-element-selector, r=notriddle
[rust.git] / tests / ui / async-await / in-trait / bad-signatures.rs
1 // edition:2021
2
3 #![feature(async_fn_in_trait)]
4 //~^ WARN the feature `async_fn_in_trait` is incomplete
5
6 trait MyTrait {
7     async fn bar(&abc self);
8     //~^ ERROR expected identifier, found keyword `self`
9     //~| ERROR expected one of `:`, `@`, or `|`, found keyword `self`
10 }
11
12 impl MyTrait for () {
13     async fn bar(&self) {}
14 }
15
16 fn main() {}