]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generic-associated-types/constraint-assoc-type-suggestion.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / generic-associated-types / constraint-assoc-type-suggestion.stderr
CommitLineData
6a06907d
XL
1warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/constraint-assoc-type-suggestion.rs:3:12
3 |
4LL | #![feature(generic_associated_types)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
9
10error[E0308]: mismatched types
11 --> $DIR/constraint-assoc-type-suggestion.rs:13:23
12 |
13LL | let b: Vec<i32> = a;
14 | -------- ^ expected struct `Vec`, found associated type
15 | |
16 | expected due to this
17 |
18 = note: expected struct `Vec<i32>`
19 found associated type `<T as X>::Y<i32>`
20help: consider constraining the associated type `<T as X>::Y<i32>` to `Vec<i32>`
21 |
22LL | fn f<T: X<Y<i32> = Vec<i32>>>(a: T::Y<i32>) {
23 | ^^^^^^^^^^^^^^^^^^^
24
25error: aborting due to previous error; 1 warning emitted
26
27For more information about this error, try `rustc --explain E0308`.