Cannot coerce dyn AsRef #61977
Labels
A-coercions
Area: implicit and explicit `expr as Type` coercions
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Really weird example:
Uncommenting the last line gives:
I genuinely don't know what's going on here, but this seems to be a bug in both coercion and diagnostics.
This is on the latest nightly.
The text was updated successfully, but these errors were encountered: