Rustc can't infer GAT type when used as argument to Fn closure outside of trait #88459
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
GATs-triaged
Issues using the `generic_associated_types` feature that have been triaged
I tried this code:
playgorund
I expected to see this happen: compiles with no errors.
Instead, this happened:
The error seems to suggest that rustc can't figure out that the associated type is
()
which should satisfy the bound inf
.Meta
1.56.0-nightly ( 5eacec9 )
This could be related to #85921, but unlike that issue this one does not seem to be fixed on latest nightly.
The text was updated successfully, but these errors were encountered: