blob: a9823327cc07378cc6bd4a311c2d89e34ec5c44d [file] [log] [blame] [edit]
//@ edition: 2021
trait Foo {
type T;
async fn foo(&self) -> Self::T;
}
struct Bar;
impl Foo for Bar {
type T = ();
async fn foo(&self) {}
}
impl Foo for Bar {
//~^ ERROR conflicting implementations of trait `Foo` for type `Bar`
type T = ();
async fn foo(&self) {}
}
fn main() {}