mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-04 14:07:36 +00:00
16 lines
289 B
Rust
16 lines
289 B
Rust
![]() |
// 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() {}
|