Calling a function declared in the Sized trait from a pub function results in an ICE #90366
Labels
A-lang-item
Area: Language items
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-internal-features
This issue requires the use of internal features.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following bare bones
no_core
program results in an ICE.Playground
Error output
Interestingly, if you remove the
pub
frombar
it compiles fine. The most sensible thing to do is probably disallow adding methods to theSized
lang item.The text was updated successfully, but these errors were encountered: