2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2017-07-24 21:31:59 -05:00
|
|
|
#![feature(optin_builtin_traits)]
|
|
|
|
|
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() {}
|