1 // ignore-tidy-linelength
3 #![feature(async_await)]
5 // This test checks that `Self` is prohibited as a return type. See #61949 for context.
12 pub async fn new(_bar: &'a i32) -> Self {
13 //~^ ERROR `async fn` return type cannot contain a projection or `Self` that references lifetimes from a parent scope