rust/tests/ui/async-await/issues/issue-78600.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
181 B
Rust
Raw Normal View History

2021-02-12 02:50:25 -06:00
// edition:2018
struct S<'a>(&'a i32);
impl<'a> S<'a> {
async fn new(i: &'a i32) -> Result<Self, ()> {
//~^ ERROR: `async fn`
2021-02-12 02:50:25 -06:00
Ok(S(&22))
}
}
fn main() {}