rust/tests/ui/async-await/issue-67651.rs
2023-01-11 09:32:08 +00:00

21 lines
275 B
Rust

// 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() {}