fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.6 KiB48 linesraw
1error[E0277]: the trait bound `i8: Foo<i32>` is not satisfied
2  --> $DIR/issue-39802-show-5-trait-impls.rs:24:21
3   |
4LL |     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<u8>>
12             <i8 as Foo<u16>>
13             <i8 as Foo<u32>>
14             <i8 as Foo<u64>>
15
16error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied
17  --> $DIR/issue-39802-show-5-trait-impls.rs:25:21
18   |
19LL |     Foo::<i32>::bar(&1u8);
20   |     --------------- ^^^^ the trait `Foo<i32>` is not implemented for `u8`
21   |     |
22   |     required by a bound introduced by this call
23   |
24   = help: the following other types implement trait `Foo<B>`:
25             <u8 as Foo<bool>>
26             <u8 as Foo<u16>>
27             <u8 as Foo<u32>>
28             <u8 as Foo<u64>>
29
30error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied
31  --> $DIR/issue-39802-show-5-trait-impls.rs:26:21
32   |
33LL |     Foo::<i32>::bar(&true);
34   |     --------------- ^^^^^ the trait `Foo<i32>` is not implemented for `bool`
35   |     |
36   |     required by a bound introduced by this call
37   |
38   = help: the following other types implement trait `Foo<B>`:
39             <bool as Foo<bool>>
40             <bool as Foo<i8>>
41             <bool as Foo<u8>>
42             <bool as Foo<u16>>
43             <bool as Foo<u32>>
44             <bool as Foo<u64>>
45
46error: aborting due to 3 previous errors
47
48For more information about this error, try `rustc --explain E0277`.