2 #![feature(generic_const_exprs)]
3 #![allow(incomplete_features)]
5 struct Foo<const B: bool>;
7 fn test<const N: usize>() -> Foo<{ !(N > 10) }> where Foo<{ !(N > 10) }>: Sized {
12 let _: Foo<false> = test::<12>();
13 let _: Foo<true> = test::<9>();