2019-11-04 00:00:00 +00:00
|
|
|
// check-pass
|
2020-11-22 19:54:31 -08:00
|
|
|
#![feature(auto_traits)]
|
2020-01-09 05:56:38 -05:00
|
|
|
#![feature(negative_impls)]
|
2017-07-25 11:31:59 +09:00
|
|
|
|
2017-12-03 10:56:53 -02:00
|
|
|
auto trait NotSame {}
|
|
|
|
|
2017-07-25 11:31:59 +09:00
|
|
|
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() {}
|