ICE on nightly when using trait objects with lazy_static #68541
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When creating a
lazy_static
with a reference to a trait object, I get an internal compiler error (only on nightly).Here's a minimal example: (playground link)
On stable and beta this gives a expected error message, but on nightly it causes an ICE.
Meta
Output from
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: