#![feature(generic_const_exprs)] #![allow(incomplete_features)] struct Foo; fn should_unify() -> Foo where [(); { N + 1 }]: { Foo:: } pub fn shouldnt_unify() -> Foo where [(); { N + 1 }]:, [(); { N + 2 }]:, { Foo:: //~^ error: mismatched types } fn main() {}