rust/src/test/ui/issues/issue-75763.rs
David Wood 88dc58fc9b
Revert "cg_llvm: fewer_names in uncached_llvm_type"
This reverts commit fa01ce802f1b403a2140fd945b43af86ec3998a1.
2020-12-17 16:40:47 +00:00

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])
}
}>;
}