2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(unused_imports)]
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-02-21 13:28:28 +02:00
|
|
|
use std::fmt::Debug;
|
2014-10-09 17:19:50 -04:00
|
|
|
use std::default::Default;
|
2014-02-04 14:31:00 +13:00
|
|
|
|
2014-10-09 17:19:50 -04:00
|
|
|
// Test that an impl for homogeneous pairs does not conflict with a
|
|
|
|
// heterogeneous pair.
|
2014-02-04 14:31:00 +13:00
|
|
|
|
2014-10-09 17:19:50 -04:00
|
|
|
trait MyTrait {
|
2015-03-25 17:06:52 -07:00
|
|
|
fn get(&self) -> usize;
|
2014-10-09 17:19:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
impl<T> MyTrait for (T,T) {
|
2015-03-25 17:06:52 -07:00
|
|
|
fn get(&self) -> usize { 0 }
|
2014-10-09 17:19:50 -04:00
|
|
|
}
|
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
impl MyTrait for (usize,isize) {
|
|
|
|
fn get(&self) -> usize { 0 }
|
2014-02-04 14:31:00 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|