mirror of
https://git.proxmox.com/git/rustc
synced 2025-10-15 10:57:35 +00:00
15 lines
258 B
Rust
15 lines
258 B
Rust
// edition:2021
|
|
|
|
|
|
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() {}
|