]>
Commit | Line | Data |
---|---|---|
6a06907d | 1 | error[E0308]: mismatched types |
f2b60f7d | 2 | --> $DIR/constraint-assoc-type-suggestion.rs:10:23 |
6a06907d XL |
3 | | |
4 | LL | let b: Vec<i32> = a; | |
5 | | -------- ^ expected struct `Vec`, found associated type | |
6 | | | | |
7 | | expected due to this | |
8 | | | |
9 | = note: expected struct `Vec<i32>` | |
10 | found associated type `<T as X>::Y<i32>` | |
11 | help: consider constraining the associated type `<T as X>::Y<i32>` to `Vec<i32>` | |
12 | | | |
13 | LL | fn f<T: X<Y<i32> = Vec<i32>>>(a: T::Y<i32>) { | |
94222f64 | 14 | | +++++++++++++++++++ |
6a06907d | 15 | |
136023e0 | 16 | error: aborting due to previous error |
6a06907d XL |
17 | |
18 | For more information about this error, try `rustc --explain E0308`. |