blob: 23f71520040080f22287b09941da4d838d3846a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// run-rustfix
trait Trait<A> {}
trait Assoc {
type Ty;
}
impl<A> Assoc for dyn Trait<A> {
type Ty = i32;
}
fn main() {
let _x: <dyn Trait<i32> as Assoc>::Ty; //~ ERROR ambiguous associated type
}
|