]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr
Auto merge of #93718 - thomcc:used-macho, r=pnkfelix
[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:24:21
3    |
4 LL |     Foo::<i32>::bar(&1i8);
5    |     --------------- ^^^^ the trait `Foo<i32>` is not implemented for `i8`
6    |     |
7    |     required by a bound introduced by this call
8    |
9    = help: the following other types implement trait `Foo<B>`:
10              <i8 as Foo<bool>>
11              <i8 as Foo<u16>>
12              <i8 as Foo<u32>>
13              <i8 as Foo<u64>>
14              <i8 as Foo<u8>>
15              <u8 as Foo<bool>>
16              <u8 as Foo<u16>>
17              <u8 as Foo<u32>>
18              <u8 as Foo<u64>>
19
20 error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied
21   --> $DIR/issue-39802-show-5-trait-impls.rs:25:21
22    |
23 LL |     Foo::<i32>::bar(&1u8);
24    |     --------------- ^^^^ the trait `Foo<i32>` is not implemented for `u8`
25    |     |
26    |     required by a bound introduced by this call
27    |
28    = help: the following other types implement trait `Foo<B>`:
29              <i8 as Foo<bool>>
30              <i8 as Foo<u16>>
31              <i8 as Foo<u32>>
32              <i8 as Foo<u64>>
33              <i8 as Foo<u8>>
34              <u8 as Foo<bool>>
35              <u8 as Foo<u16>>
36              <u8 as Foo<u32>>
37              <u8 as Foo<u64>>
38
39 error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied
40   --> $DIR/issue-39802-show-5-trait-impls.rs:26:21
41    |
42 LL |     Foo::<i32>::bar(&true);
43    |     --------------- ^^^^^ the trait `Foo<i32>` is not implemented for `bool`
44    |     |
45    |     required by a bound introduced by this call
46    |
47    = help: the following other types implement trait `Foo<B>`:
48              <bool as Foo<bool>>
49              <bool as Foo<i8>>
50              <bool as Foo<u16>>
51              <bool as Foo<u32>>
52              <bool as Foo<u64>>
53              <bool as Foo<u8>>
54
55 error: aborting due to 3 previous errors
56
57 For more information about this error, try `rustc --explain E0277`.