]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/inheritance/repeated-supertrait-ambig.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / inheritance / repeated-supertrait-ambig.stderr
CommitLineData
b7449926 1error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
6a06907d 2 --> $DIR/repeated-supertrait-ambig.rs:26:7
b7449926 3 |
532ac7d7 4LL | c.same_as(22)
b7449926
XL
5 | ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
6
7error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
6a06907d 8 --> $DIR/repeated-supertrait-ambig.rs:30:7
b7449926 9 |
532ac7d7 10LL | c.same_as(22)
b7449926 11 | ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C`
74b04a01 12 |
ba9703b0 13help: consider further restricting this bound
74b04a01 14 |
ba9703b0
XL
15LL | fn with_trait<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
16 | ^^^^^^^^^^^^^^^^
b7449926
XL
17
18error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
6a06907d 19 --> $DIR/repeated-supertrait-ambig.rs:34:5
b7449926 20 |
e1599b0c
XL
21LL | fn same_as(&self, t: T) -> bool;
22 | -------------------------------- required by `CompareTo::same_as`
23...
6a06907d
XL
24LL | <dyn CompareToInts>::same_as(c, 22)
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
b7449926
XL
26
27error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
6a06907d 28 --> $DIR/repeated-supertrait-ambig.rs:38:5
b7449926 29 |
e1599b0c
XL
30LL | fn same_as(&self, t: T) -> bool;
31 | -------------------------------- required by `CompareTo::same_as`
32...
532ac7d7 33LL | CompareTo::same_as(c, 22)
b7449926 34 | ^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C`
74b04a01 35 |
ba9703b0 36help: consider further restricting this bound
74b04a01 37 |
ba9703b0
XL
38LL | fn with_ufcs2<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
39 | ^^^^^^^^^^^^^^^^
b7449926
XL
40
41error[E0277]: the trait bound `i64: CompareTo<i32>` is not satisfied
6a06907d 42 --> $DIR/repeated-supertrait-ambig.rs:42:23
b7449926 43 |
532ac7d7 44LL | assert_eq!(22_i64.same_as(22), true);
b7449926
XL
45 | ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `i64`
46 |
47 = help: the following implementations were found:
48 <i64 as CompareTo<i64>>
49 <i64 as CompareTo<u64>>
50
51error: aborting due to 5 previous errors
52
53For more information about this error, try `rustc --explain E0277`.