Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
async-await
/
in-trait
/
bad-signatures.rs
blob: 5adede5b5cf1d076c047a05e556c2d6c39e5bad5 [
file
] [
log
] [
blame
]
// 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
()
{}