rust/tests/ui/qualified/qualified-path-params-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
286 B
Rust
Raw Normal View History

2016-04-16 18:53:40 +00: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-06 03:41:25 +00:00
type A = <S as Tr>::A::f<u8>;
//~^ ERROR ambiguous associated type
2016-04-16 18:53:40 +00:00
fn main() {}