]>
Commit | Line | Data |
---|---|---|
8bb4bdeb | 1 | error[E0277]: the trait bound `i8: Foo<i32>` is not satisfied |
e1599b0c | 2 | --> $DIR/issue-39802-show-5-trait-impls.rs:24:21 |
8bb4bdeb | 3 | | |
532ac7d7 | 4 | LL | Foo::<i32>::bar(&1i8); |
e1599b0c | 5 | | ^^^^ the trait `Foo<i32>` is not implemented for `i8` |
8bb4bdeb XL |
6 | | |
7 | = help: the following implementations were found: | |
b7449926 | 8 | <i8 as Foo<bool>> |
8bb4bdeb XL |
9 | <i8 as Foo<u16>> |
10 | <i8 as Foo<u32>> | |
11 | <i8 as Foo<u64>> | |
b7449926 | 12 | <i8 as Foo<u8>> |
136023e0 XL |
13 | note: required by `Foo::bar` |
14 | --> $DIR/issue-39802-show-5-trait-impls.rs:2:5 | |
15 | | | |
16 | LL | fn bar(&self){} | |
17 | | ^^^^^^^^^^^^^ | |
8bb4bdeb XL |
18 | |
19 | error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied | |
e1599b0c | 20 | --> $DIR/issue-39802-show-5-trait-impls.rs:25:21 |
8bb4bdeb | 21 | | |
532ac7d7 | 22 | LL | Foo::<i32>::bar(&1u8); |
e1599b0c | 23 | | ^^^^ the trait `Foo<i32>` is not implemented for `u8` |
8bb4bdeb XL |
24 | | |
25 | = help: the following implementations were found: | |
b7449926 | 26 | <u8 as Foo<bool>> |
8bb4bdeb XL |
27 | <u8 as Foo<u16>> |
28 | <u8 as Foo<u32>> | |
29 | <u8 as Foo<u64>> | |
136023e0 XL |
30 | note: required by `Foo::bar` |
31 | --> $DIR/issue-39802-show-5-trait-impls.rs:2:5 | |
32 | | | |
33 | LL | fn bar(&self){} | |
34 | | ^^^^^^^^^^^^^ | |
8bb4bdeb XL |
35 | |
36 | error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied | |
e1599b0c | 37 | --> $DIR/issue-39802-show-5-trait-impls.rs:26:21 |
8bb4bdeb | 38 | | |
532ac7d7 | 39 | LL | Foo::<i32>::bar(&true); |
e1599b0c | 40 | | ^^^^^ the trait `Foo<i32>` is not implemented for `bool` |
8bb4bdeb XL |
41 | | |
42 | = help: the following implementations were found: | |
9fa01778 XL |
43 | <bool as Foo<bool>> |
44 | <bool as Foo<i8>> | |
8bb4bdeb XL |
45 | <bool as Foo<u16>> |
46 | <bool as Foo<u32>> | |
8bb4bdeb | 47 | and 2 others |
136023e0 XL |
48 | note: required by `Foo::bar` |
49 | --> $DIR/issue-39802-show-5-trait-impls.rs:2:5 | |
50 | | | |
51 | LL | fn bar(&self){} | |
52 | | ^^^^^^^^^^^^^ | |
8bb4bdeb | 53 | |
041b39d2 | 54 | error: aborting due to 3 previous errors |
8bb4bdeb | 55 | |
0531ce1d | 56 | For more information about this error, try `rustc --explain E0277`. |