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