-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: impl Foo for [u8; usize::BYTES] #28586
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
Comments
It will compile if you add this: #![feature(num_bits_bytes)]
use std::usize; This turns But it's still a good bug report, don't close it! |
Similar to issue #24947. |
Another test-case: struct FixedArray<T, ArraySize> { data: [T; ArraySize::Size] }
fn main() {} with
results of
results of
with backtrace from gdb - similar to the stack backtrace reported in this issue:
|
Reference rust-lang/rust#28586
Reference rust-lang/rust#28586
It looks like this no longer ICEs rust-lang/glacier#85 |
@steveklabnik your code never ICE'd, because it has |
The code should be pub trait Foo {}
impl Foo for [u8; usize::BYTES] {}
fn main() { } but it is indeed fixed to be an error, not an ICE now. |
I tried this code:
I expected to see this happen: great success
Instead, this happened: error: internal compiler error: unexpected panic
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: