]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr
Rollup merge of #43011 - qnighy:unsized-tuple-impls, r=aturon
[rust.git] / src / test / ui / did_you_mean / issue-39802-show-5-trait-impls.stderr
1 error[E0277]: the trait bound `i8: Foo<i32>` is not satisfied
2   --> $DIR/issue-39802-show-5-trait-impls.rs:34:5
3    |
4 34 |     Foo::<i32>::bar(&1i8);
5    |     ^^^^^^^^^^^^^^^ the trait `Foo<i32>` is not implemented for `i8`
6    |
7    = help: the following implementations were found:
8              <i8 as Foo<u8>>
9              <i8 as Foo<u16>>
10              <i8 as Foo<u32>>
11              <i8 as Foo<u64>>
12              <i8 as Foo<bool>>
13    = note: required by `Foo::bar`
14
15 error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied
16   --> $DIR/issue-39802-show-5-trait-impls.rs:35:5
17    |
18 35 |     Foo::<i32>::bar(&1u8);
19    |     ^^^^^^^^^^^^^^^ the trait `Foo<i32>` is not implemented for `u8`
20    |
21    = help: the following implementations were found:
22              <u8 as Foo<u16>>
23              <u8 as Foo<u32>>
24              <u8 as Foo<u64>>
25              <u8 as Foo<bool>>
26    = note: required by `Foo::bar`
27
28 error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied
29   --> $DIR/issue-39802-show-5-trait-impls.rs:36:5
30    |
31 36 |     Foo::<i32>::bar(&true);
32    |     ^^^^^^^^^^^^^^^ the trait `Foo<i32>` is not implemented for `bool`
33    |
34    = help: the following implementations were found:
35              <bool as Foo<u8>>
36              <bool as Foo<u16>>
37              <bool as Foo<u32>>
38              <bool as Foo<u64>>
39            and 2 others
40    = note: required by `Foo::bar`
41
42 error: aborting due to 3 previous errors
43