2024-02-16 20:02:50 +00:00
|
|
|
//@ edition:2018
|
2020-02-06 10:33:05 +01:00
|
|
|
|
|
|
|
|
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() {}
|