blob: 7a7bf2d7b134b4c08b846861f7d9675795fbd39b [file] [log] [blame] [edit]
//@ edition:2018
trait From {
fn from();
}
impl From for () {
fn from() {}
}
impl From for () {
//~^ ERROR conflicting implementations of trait
fn from() {}
}
fn bar() -> impl core::future::Future<Output = ()> {
async move { From::from() }
}
fn main() {}