This commit is contained in:
Michael Goulet 2023-01-18 18:11:19 +00:00
parent 200f466d1a
commit 9793abc209
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// edition:2021
pub trait T {}
impl T for () {}
pub struct S {}
impl S {
pub async fn f<'a>(&self) -> impl T + 'a {
()
}
}

View File

@ -0,0 +1,14 @@
// aux-build:issue-107036.rs
// edition:2021
// check-pass
extern crate issue_107036;
use issue_107036::S;
async fn f() {
S{}.f().await;
}
fn main() {
let _ = f();
}