]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issue-67651.rs
Rollup merge of #107203 - chenyukang:yukang/fix-106496-remove-deref, r=compiler-errors
[rust.git] / tests / ui / async-await / issue-67651.rs
1 // edition:2018
2
3 trait From {
4     fn from();
5 }
6
7 impl From for () {
8     fn from() {}
9 }
10
11 impl From for () {
12 //~^ ERROR conflicting implementations of trait
13     fn from() {}
14 }
15
16 fn bar() -> impl core::future::Future<Output = ()> {
17     async move { From::from() }
18 }
19
20 fn main() {}