-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE caused by trying to check if a reference is fat or not in consteval with an unsatisfied Sized bound #141734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Another variant: fn foo()
where
for<'a> str: Sized,
{
let _ = [0; size_of_val(&"abc")];
} Error output:
Backtrace
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Code
See also #141735
Meta
Reproducible on the playground with rust
1.87.0
and rust1.89.0-nightly (2025-05-28 6f69710780d579b180ab)
.Error output
Backtrace
The text was updated successfully, but these errors were encountered: