summary refs log tree commit diff
path: root/src/test/ui/const-generics/issue-75763.rs
blob: c311de05a1cff1c4e6bcfea32053ad516217c6b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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])
        }
    }>;
}