danielhenrymantilla / nougat.rs

(lifetime) GATs on stable Rust
https://docs.rs/nougat
Apache License 2.0
53 stars 6 forks source link

`dyn`-safety / `dyn`-friendlyness #3

Open danielhenrymantilla opened 2 years ago

danielhenrymantilla commented 2 years ago

The current workaround used by nougat (that is, the : for<'any> LendingIterator__Item super trait which "only" features the specific associated type) does not bode well with dyn Traits.

Mainly: dyn Traits require that their associated types be provided, but to my knowledge it is not possible to higher-order specify the associated type of a super trait.

That is: