//@ check-pass #![feature(auto_traits)] #![feature(negative_impls)] auto trait NotSame {} impl !NotSame for (A, A) {} trait OneOfEach {} impl OneOfEach for (A,) {} impl OneOfEach for (A, B) where (B,): OneOfEach, (A, B): NotSame, { } fn main() {}