]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/auxiliary/issue-73061.rs
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / rustdoc / auxiliary / issue-73061.rs
1 //edition:2018
2
3 #![feature(type_alias_impl_trait)]
4
5 pub trait Foo {
6     type X: std::future::Future<Output = ()>;
7     fn x(&self) -> Self::X;
8 }
9
10 pub struct F;
11
12 impl Foo for F {
13     type X = impl std::future::Future<Output = ()>;
14     fn x(&self) -> Self::X {
15         async {}
16     }
17 }