// check-pass #![feature(generic_const_exprs)] #![allow(incomplete_features)] trait If {} impl If for () {} trait IsZero { type Answer; } struct True; struct False; impl IsZero for () where (): If<{N == 0}> { type Answer = True; } trait Foobar {} impl Foobar for () where (): IsZero {} impl Foobar for () where (): IsZero {} fn main() {}