]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/auxiliary/issue-107036.rs
Rollup merge of #106854 - steffahn:drop_linear_arc_rebased, r=Mark-Simulacrum
[rust.git] / tests / ui / async-await / auxiliary / issue-107036.rs
1 // edition:2021
2
3 pub trait T {}
4 impl T for () {}
5
6 pub struct S {}
7
8 impl S {
9     pub async fn f<'a>(&self) -> impl T + 'a {
10         ()
11     }
12 }