rust/tests/ui/issues/issue-29516.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
272 B
Rust
Raw Normal View History

// check-pass
#![feature(auto_traits)]
#![feature(negative_impls)]
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() {}