2 #![feature(generic_const_exprs)]
3 #![allow(incomplete_features)]
5 struct Foo<const N: u8>([u8; N as usize])
9 struct Bar<const N: u8>([u8; (N + 2) as usize]) where [(); (N + 2) as usize]:;
11 // unifying with subtrees
12 struct Evaluatable<const N: u16>;
13 fn foo<const N: u8>() where Evaluatable<{N as usize as u16 }>: {
14 let _ = Foo::<N>([1; N as usize]);