]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generic-associated-types/constraint-assoc-type-suggestion.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / generic-associated-types / constraint-assoc-type-suggestion.stderr
CommitLineData
6a06907d 1error[E0308]: mismatched types
f2b60f7d 2 --> $DIR/constraint-assoc-type-suggestion.rs:10:23
6a06907d
XL
3 |
4LL | 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>`
11help: consider constraining the associated type `<T as X>::Y<i32>` to `Vec<i32>`
12 |
13LL | fn f<T: X<Y<i32> = Vec<i32>>>(a: T::Y<i32>) {
94222f64 14 | +++++++++++++++++++
6a06907d 15
136023e0 16error: aborting due to previous error
6a06907d
XL
17
18For more information about this error, try `rustc --explain E0308`.