diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-29516.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-29516.rs b/src/test/ui/issues/issue-29516.rs new file mode 100644 index 000000000..6779d508d --- /dev/null +++ b/src/test/ui/issues/issue-29516.rs @@ -0,0 +1,20 @@ +// 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() {} |