fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.8 KiB47 linesraw
1error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
2  --> $DIR/traits-repeated-supertrait-ambig.rs:26:7
3   |
4LL |     c.same_as(22)
5   |       ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
6
7error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
8  --> $DIR/traits-repeated-supertrait-ambig.rs:30:7
9   |
10LL |     c.same_as(22)
11   |       ^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C`
12   |
13   = help: consider adding a `where C: CompareTo<i32>` bound
14
15error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
16  --> $DIR/traits-repeated-supertrait-ambig.rs:34:5
17   |
18LL |     fn same_as(&self, t: T) -> bool;
19   |     -------------------------------- required by `CompareTo::same_as`
20...
21LL |     CompareToInts::same_as(c, 22)
22   |     ^^^^^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
23
24error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
25  --> $DIR/traits-repeated-supertrait-ambig.rs:38:5
26   |
27LL |     fn same_as(&self, t: T) -> bool;
28   |     -------------------------------- required by `CompareTo::same_as`
29...
30LL |     CompareTo::same_as(c, 22)
31   |     ^^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `C`
32   |
33   = help: consider adding a `where C: CompareTo<i32>` bound
34
35error[E0277]: the trait bound `i64: CompareTo<i32>` is not satisfied
36  --> $DIR/traits-repeated-supertrait-ambig.rs:42:23
37   |
38LL |     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
45error: aborting due to 5 previous errors
46
47For more information about this error, try `rustc --explain E0277`.