Skip to content

return_position_impl_trait_in_trait lifetimes on self #109016

@gilescope

Description

@gilescope

The following compiles:

https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=b0b57210e4369ac10e2dd694644cfbaf

But if you take away <'a> then the code doesn't compile. It compiles if self rather than &self is used. Is this as good as it gets? Would have expected this to work without the 'as. (I appreicate this is work in progress, hope this helps, sorry if it's a dupe).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-async-awaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.C-bugCategory: This is a bug.F-async_fn_in_traitStatic async fn in traitsF-return_position_impl_trait_in_trait`#![feature(return_position_impl_trait_in_trait)]`

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions