ICE: ty type is a ref but hir type is not
#121816
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'll even accept that this is probably UB if I somehow make it work but crashing on
cargo check
is probably not the way. Replacing some&
with&mut
, or'static
with a second lifetime parameter correctly rejects the code.Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: