rust/src/test/ui/issues/issue-29516.rs

20 lines
253 B
Rust
Raw Normal View History

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