Closed
Description
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 version
Metadata
Metadata
Assignees
Labels
Area: Generic associated types (GATs)Area: Lifetimes / regionsCategory: This is a bug.`#![feature(generic_associated_types)]` a.k.a. GATs`#[feature(type_alias_impl_trait)]`Issues using the `generic_associated_types` feature that have been triagedRelevant to the compiler team, which will review and decide on the PR/issue.This issue requires a nightly compiler in some way.
Type
Projects
Status
Done