]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/constraint-assoc-type-suggestion.stderr
Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree
[rust.git] / src / test / ui / generic-associated-types / constraint-assoc-type-suggestion.stderr
1 error[E0308]: mismatched types
2   --> $DIR/constraint-assoc-type-suggestion.rs:12:23
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>) {
14    |          +++++++++++++++++++
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.