rust-aliasable icon indicating copy to clipboard operation
rust-aliasable copied to clipboard

`AliasableBox<T>` does not implement `Into<UniqueBox<T>>`

Open yyny opened this issue 8 months ago • 1 comments

AliasableBox<T> should

impl<T: ?Sized> From<AliasableBox<T>> for UniqueBox<T> { ... }

to match the other aliasable types.

yyny avatar Mar 07 '26 11:03 yyny

Because of the orphan rule, I'm fairly sure that this is impossible.

In particular, I think it would run into error[E0210]: type parameter `T` must be covered by another type when it appears before the first local type.

robofinch avatar May 12 '26 19:05 robofinch