]> git.proxmox.com Git - rustc.git/blob - src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr
New upstream version 1.55.0+dfsg1
[rustc.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 = help: the following implementations were found:
8 <i8 as Foo<bool>>
9 <i8 as Foo<u16>>
10 <i8 as Foo<u32>>
11 <i8 as Foo<u64>>
12 <i8 as Foo<u8>>
13 note: required by `Foo::bar`
14 --> $DIR/issue-39802-show-5-trait-impls.rs:2:5
15 |
16 LL | fn bar(&self){}
17 | ^^^^^^^^^^^^^
18
19 error[E0277]: the trait bound `u8: Foo<i32>` is not satisfied
20 --> $DIR/issue-39802-show-5-trait-impls.rs:25:21
21 |
22 LL | Foo::<i32>::bar(&1u8);
23 | ^^^^ the trait `Foo<i32>` is not implemented for `u8`
24 |
25 = help: the following implementations were found:
26 <u8 as Foo<bool>>
27 <u8 as Foo<u16>>
28 <u8 as Foo<u32>>
29 <u8 as Foo<u64>>
30 note: required by `Foo::bar`
31 --> $DIR/issue-39802-show-5-trait-impls.rs:2:5
32 |
33 LL | fn bar(&self){}
34 | ^^^^^^^^^^^^^
35
36 error[E0277]: the trait bound `bool: Foo<i32>` is not satisfied
37 --> $DIR/issue-39802-show-5-trait-impls.rs:26:21
38 |
39 LL | Foo::<i32>::bar(&true);
40 | ^^^^^ the trait `Foo<i32>` is not implemented for `bool`
41 |
42 = help: the following implementations were found:
43 <bool as Foo<bool>>
44 <bool as Foo<i8>>
45 <bool as Foo<u16>>
46 <bool as Foo<u32>>
47 and 2 others
48 note: required by `Foo::bar`
49 --> $DIR/issue-39802-show-5-trait-impls.rs:2:5
50 |
51 LL | fn bar(&self){}
52 | ^^^^^^^^^^^^^
53
54 error: aborting due to 3 previous errors
55
56 For more information about this error, try `rustc --explain E0277`.