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