-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
ICE: type mismatch when copying! with no feature provided #124552
Copy link
Copy link
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-bug-has-testStatus: This bug is tracked inside the repo by a `known-bug` test.Status: This bug is tracked inside the repo by a `known-bug` test.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-bug-has-testStatus: This bug is tracked inside the repo by a `known-bug` test.Status: This bug is tracked inside the repo by a `known-bug` test.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
(reduced)
Original Code
Meta
rustc --version --verbose:Command
rustcError output
Backtrace
Note
type mismatch when copying#120016 has the same ICE location, but this one doesn't require any feature to make ICE.compiler/rustc_const_eval/src/interpret/place.rs:849:13rust/compiler/rustc_const_eval/src/interpret/place.rs
Lines 848 to 855 in 0ad927c
tests/ui/static/static-items-cant-move.rsrust/tests/ui/static/static-items-cant-move.rs
Lines 5 to 10 in 0ad927c