]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/inheritance/repeated-supertrait-ambig.stderr
Rollup merge of #89642 - devnexen:macos_getenv_chng, r=m-ou-se
[rust.git] / src / test / ui / traits / inheritance / repeated-supertrait-ambig.stderr
1 error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
2   --> $DIR/repeated-supertrait-ambig.rs:26:7
3    |
4 LL |     c.same_as(22)
5    |       ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
6
7 error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
8   --> $DIR/repeated-supertrait-ambig.rs:30:7
9    |
10 LL |     c.same_as(22)
11    |       ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C`
12    |
13 help: consider further restricting this bound
14    |
15 LL | fn with_trait<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
16    |                               ++++++++++++++++
17
18 error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
19   --> $DIR/repeated-supertrait-ambig.rs:34:5
20    |
21 LL |     <dyn CompareToInts>::same_as(c, 22)
22    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
23
24 error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
25   --> $DIR/repeated-supertrait-ambig.rs:38:5
26    |
27 LL |     CompareTo::same_as(c, 22)
28    |     ^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C`
29    |
30 help: consider further restricting this bound
31    |
32 LL | fn with_ufcs2<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
33    |                               ++++++++++++++++
34
35 error[E0277]: the trait bound `i64: CompareTo<i32>` is not satisfied
36   --> $DIR/repeated-supertrait-ambig.rs:42:23
37    |
38 LL |     assert_eq!(22_i64.same_as(22), true);
39    |                       ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `i64`
40    |
41    = help: the following implementations were found:
42              <i64 as CompareTo<i64>>
43              <i64 as CompareTo<u64>>
44
45 error: aborting due to 5 previous errors
46
47 For more information about this error, try `rustc --explain E0277`.