rust/tests/ui/async-await/issues/issue-78600.rs
2023-09-08 03:45:36 +00:00

13 lines
164 B
Rust

// check-pass
// edition:2018
struct S<'a>(&'a i32);
impl<'a> S<'a> {
async fn new(i: &'a i32) -> Result<Self, ()> {
Ok(S(&22))
}
}
fn main() {}