2015-04-09 14:56:07 -05:00
|
|
|
// Check that we detect an overlap here in the case where:
|
|
|
|
//
|
|
|
|
// for some type X:
|
|
|
|
// T = (X,)
|
|
|
|
// T11 = X, U11 = X
|
|
|
|
//
|
|
|
|
// Seems pretty basic, but then there was issue #24241. :)
|
|
|
|
|
|
|
|
trait From<U> {
|
2017-02-25 15:16:27 -06:00
|
|
|
fn foo() {}
|
2015-04-09 14:56:07 -05:00
|
|
|
}
|
|
|
|
|
2015-12-29 23:18:24 -06:00
|
|
|
impl <T> From<T> for T {
|
2015-04-09 14:56:07 -05:00
|
|
|
}
|
|
|
|
|
2015-12-29 23:18:24 -06:00
|
|
|
impl <T11, U11> From<(U11,)> for (T11,) { //~ ERROR E0119
|
2015-04-09 14:56:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|