summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/issue-67651.rs
blob: bd96a3b709baea3a6a44959bcd6d55b940011087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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() {}