Min TAIT + GAT lifetime issue #86218
Labels
A-GATs
Area: Generic associated types (GATs)
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
F-generic_associated_types
`#![feature(generic_associated_types)]` a.k.a. GATs
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
GATs-triaged
Issues using the `generic_associated_types` feature that have been triaged
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=71e56b49edea6de440eed3a417322308
Code that is an equivalent to the one above, but that compiles: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=f071b171eda8921c1d4902999417594d
I'm not sure about the exact reason for this to happen, but I can suspect the presence of an additional lifetime in impl block that is causing this bug.
I expected to see this happen: It compiles
Instead, this happened: Lifetime error
Meta
rustc --version --verbose
: Latest playground versionThe text was updated successfully, but these errors were encountered: