]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/trait-with-missing-associated-type-restriction.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / suggestions / trait-with-missing-associated-type-restriction.stderr
index e629f8f970d320d5e18617dd598f08913324250e..943cbcbc81a22f06f4d47b9d35cf5a9a847df7e8 100644 (file)
@@ -23,7 +23,7 @@ LL |     qux(x.func())
 help: consider constraining the associated type `<impl Trait as Trait>::A` to `usize`
    |
 LL | fn foo(_: impl Trait, x: impl Trait<A = usize>) {
-   |                                    ^^^^^^^^^^^
+   |                                    +++++++++++
 
 error[E0308]: mismatched types
   --> $DIR/trait-with-missing-associated-type-restriction.rs:18:9
@@ -36,7 +36,7 @@ LL |     qux(x.func())
 help: consider constraining the associated type `<T as Trait>::A` to `usize`
    |
 LL | fn bar<T: Trait<A = usize>>(x: T) {
-   |                ^^^^^^^^^^^
+   |                +++++++++++
 
 error[E0308]: mismatched types
   --> $DIR/trait-with-missing-associated-type-restriction.rs:22:9
@@ -49,7 +49,7 @@ LL |     qux(x.func())
 help: consider constraining the associated type `<impl Trait<i32> as Trait<i32>>::A` to `usize`
    |
 LL | fn foo2(x: impl Trait<i32, A = usize>) {
-   |                          ^^^^^^^^^^^
+   |                          +++++++++++
 
 error[E0308]: mismatched types
   --> $DIR/trait-with-missing-associated-type-restriction.rs:26:12
@@ -70,7 +70,7 @@ LL |     fn funq(&self) -> Self::A {}
 help: consider constraining the associated type `<T as Trait<i32>>::A` to `{integer}`
    |
 LL | fn bar2<T: Trait<i32, A = {integer}>>(x: T) {
-   |                     ^^^^^^^^^^^^^^^
+   |                     +++++++++++++++
 
 error[E0308]: mismatched types
   --> $DIR/trait-with-missing-associated-type-restriction.rs:27:9
@@ -83,7 +83,7 @@ LL |     qux(x.func())
 help: consider constraining the associated type `<T as Trait<i32>>::A` to `usize`
    |
 LL | fn bar2<T: Trait<i32, A = usize>>(x: T) {
-   |                     ^^^^^^^^^^^
+   |                     +++++++++++
 
 error[E0308]: mismatched types
   --> $DIR/trait-with-missing-associated-type-restriction.rs:31:9
@@ -113,7 +113,7 @@ LL |     qux(x.func())
 help: consider constraining the associated type `<T as Trait>::A` to `usize`
    |
 LL | fn ban<T>(x: T) where T: Trait<A = usize> {
-   |                               ^^^^^^^^^^^
+   |                               +++++++++++
 
 error: aborting due to 9 previous errors