2022-12-29 03:45:19 -06:00
|
|
|
//@ run-pass
|
|
|
|
#![feature(generic_const_exprs)]
|
2023-04-04 03:41:44 -05:00
|
|
|
#![feature(transmute_generic_consts)]
|
2022-12-29 03:45:19 -06:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
fn ident<const W: usize, const H: usize>(v: [[u32; H]; W]) -> [[u32; H]; W] {
|
|
|
|
unsafe {
|
|
|
|
std::mem::transmute(v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = ident([[0; 8]; 16]);
|
|
|
|
}
|