2022-12-12 08:28:08 -06:00
|
|
|
#![feature(generic_const_exprs)]
|
2022-12-12 08:41:34 -06:00
|
|
|
#![allow(incomplete_features)]
|
2022-12-12 08:28:08 -06:00
|
|
|
|
|
|
|
struct Combination<const STRATEGIES: usize>;
|
|
|
|
|
|
|
|
impl<const STRATEGIES: usize> Combination<STRATEGIES> {
|
|
|
|
fn and<M>(self) -> Combination<{ STRATEGIES + 1 }> {
|
|
|
|
Combination
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
Combination::<0>.and::<_>().and::<_>();
|
|
|
|
//~^ ERROR: type annotations needed
|
|
|
|
}
|