unsizing fails when associated types are involved #50213
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
I am trying to implement something very generic, and in the course of doing so, am using trait associated types. That, in turn, apparently doesn't allow the unsizing rules to kick in.
The following compiles fine:
Now, adding some nesting in the above fails:
That fails with:
In fact, it fails similarly with a simplified version that differs even less with the original:
(In fact, the
UnsafeCell
is irrelevant, and can be removed too)The text was updated successfully, but these errors were encountered: