transitive coercion to slice doesn't work for arrays #103259
Labels
A-array
Area: `[T; N]`
A-coercions
Area: implicit and explicit `expr as Type` coercions
C-bug
Category: This is a bug.
The first three coercions here work fine, but the last one fails on both
v1.64.0
andv1.66.0-nightly
(playground link):Is that expected? The Reference mentions that transitive coercions are "not fully supported yet", so maybe this is a known limitation, but I wasn't able to find anything explicit about it. This old unfinished RFC might also be related, but I'm not totally sure. If there's a known limitation like "transitive unsized coercions aren't currently supported", I'd be happy to submit a PR clarifying that in the Reference.
The text was updated successfully, but these errors were encountered: