Compiler error when repeating GAT in FnMut signature instead of using Self::AssociatedType syntax #100689
Labels
A-GATs
Area: Generic associated types (GATs)
C-bug
Category: This is a bug.
F-generic_associated_types
`#![feature(generic_associated_types)]` a.k.a. GATs
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The original problem I tried to solve can be found here:
Referencing to a value with lifetime to pass it to a FnMut.
This code causes an ICE:
Code
The behavior differs when I replace
FnMut(&'b Foo<'a>
withSelf::FooRef<'b>
. Then the compiling fails without an ICE:The compiling succeeds when all
'a : 'b
are replaced with&'a () : 'b
. PlaygroundThanks Yandros for elaborating these details! (I don't know your github name)
Meta
Error output
Backtrace
The text was updated successfully, but these errors were encountered: