-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
ICE comparing unsized type as raw pointer #18829
Comments
huonw
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
A-DSTs
Area: Dynamically-sized types (DSTs)
labels
Nov 12, 2014
This no longer ICEs for me, and gives the right error:
|
@steveklabnik: No, that's just the array |
Oops, sorry about that! Re-opened, and your new sample does ICE for me. Thanks! |
Still ICEs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Attempting to cast
&str
or a slice to a raw pointer results in a proper error message. Attempting to compare two such invalid casts, however, generates an ICE.(And I realize now that
.as_ptr()
is the right way to do what I was trying to do.)Results in:
The text was updated successfully, but these errors were encountered: