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