2 #![feature(generic_arg_infer)]
4 struct Foo<const N: bool, const M: u8>;
5 struct Bar<const N: u8, const M: u32>;
8 let _: Foo<true, _> = Foo::<_, 1>;
9 let _: Foo<_, 1> = Foo::<true, _>;
10 let _: Bar<1, _> = Bar::<_, 300>;
11 let _: Bar<_, 300> = Bar::<1, _>;