]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
8bb4bdeb 1error[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 4LL | 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
13note: required by `Foo::bar`
14 --> $DIR/issue-39802-show-5-trait-impls.rs:2:5
15 |
16LL | fn bar(&self){}
17 | ^^^^^^^^^^^^^
8bb4bdeb
XL
18
19error[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 22LL | 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
30note: required by `Foo::bar`
31 --> $DIR/issue-39802-show-5-trait-impls.rs:2:5
32 |
33LL | fn bar(&self){}
34 | ^^^^^^^^^^^^^
8bb4bdeb
XL
35
36error[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 39LL | 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
48note: required by `Foo::bar`
49 --> $DIR/issue-39802-show-5-trait-impls.rs:2:5
50 |
51LL | fn bar(&self){}
52 | ^^^^^^^^^^^^^
8bb4bdeb 53
041b39d2 54error: aborting due to 3 previous errors
8bb4bdeb 55
0531ce1d 56For more information about this error, try `rustc --explain E0277`.