88dc58fc9b
This reverts commit fa01ce802f1b403a2140fd945b43af86ec3998a1.
17 lines
419 B
Rust
17 lines
419 B
Rust
// ignore-test
|
|
// FIXME(const_generics): This test causes an ICE after reverting #76030.
|
|
|
|
#![allow(incomplete_features)]
|
|
#![feature(const_generics)]
|
|
|
|
struct Bug<const S: &'static str>;
|
|
|
|
fn main() {
|
|
let b: Bug::<{
|
|
unsafe {
|
|
// FIXME(const_generics): Decide on how to deal with invalid values as const params.
|
|
std::mem::transmute::<&[u8], &str>(&[0xC0, 0xC1, 0xF5])
|
|
}
|
|
}>;
|
|
}
|