]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / did_you_mean / issue-39802-show-5-trait-impls.stderr
index dff980301911cc11fd94923bd4146720d7409880..d27b05fe7f7df721b5a41733fc2f7cbf6e49ec87 100644 (file)
@@ -6,12 +6,16 @@ LL |     Foo::<i32>::bar(&1i8);
    |     |
    |     required by a bound introduced by this call
    |
-   = help: the following implementations were found:
+   = help: the following other types implement trait `Foo<B>`:
              <i8 as Foo<bool>>
              <i8 as Foo<u16>>
              <i8 as Foo<u32>>
              <i8 as Foo<u64>>
-           and 5 others
+             <i8 as Foo<u8>>
+             <u8 as Foo<bool>>
+             <u8 as Foo<u16>>
+             <u8 as Foo<u32>>
+             <u8 as Foo<u64>>
 
 error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied
   --> $DIR/issue-39802-show-5-trait-impls.rs:25:21
@@ -21,12 +25,16 @@ LL |     Foo::<i32>::bar(&1u8);
    |     |
    |     required by a bound introduced by this call
    |
-   = help: the following implementations were found:
+   = help: the following other types implement trait `Foo<B>`:
+             <i8 as Foo<bool>>
+             <i8 as Foo<u16>>
+             <i8 as Foo<u32>>
+             <i8 as Foo<u64>>
+             <i8 as Foo<u8>>
              <u8 as Foo<bool>>
              <u8 as Foo<u16>>
              <u8 as Foo<u32>>
              <u8 as Foo<u64>>
-           and 5 others
 
 error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied
   --> $DIR/issue-39802-show-5-trait-impls.rs:26:21
@@ -36,12 +44,13 @@ LL |     Foo::<i32>::bar(&true);
    |     |
    |     required by a bound introduced by this call
    |
-   = help: the following implementations were found:
+   = help: the following other types implement trait `Foo<B>`:
              <bool as Foo<bool>>
              <bool as Foo<i8>>
              <bool as Foo<u16>>
              <bool as Foo<u32>>
-           and 2 others
+             <bool as Foo<u64>>
+             <bool as Foo<u8>>
 
 error: aborting due to 3 previous errors