]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-multidispatch-tuple.rs
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.git] / src / test / ui / coherence / coherence-multidispatch-tuple.rs
1 // run-pass
2 #![allow(unused_imports)]
3 // pretty-expanded FIXME #23616
4
5 use std::fmt::Debug;
6 use std::default::Default;
7
8 // Test that an impl for homogeneous pairs does not conflict with a
9 // heterogeneous pair.
10
11 trait MyTrait {
12     fn get(&self) -> usize;
13 }
14
15 impl<T> MyTrait for (T,T) {
16     fn get(&self) -> usize { 0 }
17 }
18
19 impl MyTrait for (usize,isize) {
20     fn get(&self) -> usize { 0 }
21 }
22
23 fn main() {
24 }