]>
git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/issue-61949-self-return-type.rs
2 // gate-test-impl_trait_projections
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
23 //~^ ERROR `bar` does not live long enough