1
Fork 0

Add FIXME note to const generics test

Co-authored-by: lcnr <bastian_kauschke@hotmail.de>
This commit is contained in:
Camelid 2020-10-26 13:56:31 -07:00 committed by GitHub
parent 94ed9455e8
commit 4641d2e6aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@ 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])
}
}>;