2016-04-16 21:53:40 +03:00
|
|
|
// Check that qualified paths with type parameters
|
|
|
|
// fail during type checking and not during parsing
|
|
|
|
|
|
|
|
struct S;
|
|
|
|
|
|
|
|
trait Tr {
|
|
|
|
type A;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Tr for S {
|
|
|
|
type A = S;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
fn f<T>() {}
|
|
|
|
}
|
|
|
|
|
2016-08-05 20:41:25 -07:00
|
|
|
type A = <S as Tr>::A::f<u8>;
|
2019-12-08 17:22:35 +00:00
|
|
|
//~^ ERROR ambiguous associated type
|
2016-04-16 21:53:40 +03:00
|
|
|
|
|
|
|
fn main() {}
|