2018-08-08 14:28:26 +02:00
|
|
|
error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
|
2022-08-17 01:28:26 +00:00
|
|
|
--> $DIR/repeated-supertrait-ambig.rs:26:15
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | c.same_as(22)
|
2022-08-17 01:28:26 +00:00
|
|
|
| ------- ^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
|
|
|
|
|
| |
|
|
|
|
|
| required by a bound introduced by this call
|
2021-12-13 20:56:40 +00:00
|
|
|
|
|
2022-03-27 02:02:07 +00:00
|
|
|
= help: the following other types implement trait `CompareTo<T>`:
|
2024-06-07 14:54:42 +00:00
|
|
|
`i64` implements `CompareTo<i64>`
|
|
|
|
|
`i64` implements `CompareTo<u64>`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
|
2022-08-17 01:28:26 +00:00
|
|
|
--> $DIR/repeated-supertrait-ambig.rs:30:15
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | c.same_as(22)
|
2022-08-17 01:28:26 +00:00
|
|
|
| ------- ^^ the trait `CompareTo<i32>` is not implemented for `C`
|
|
|
|
|
| |
|
|
|
|
|
| required by a bound introduced by this call
|
2019-12-26 13:43:33 +01:00
|
|
|
|
|
2024-11-28 21:57:48 +00:00
|
|
|
help: consider further restricting type parameter `C` with trait `CompareTo`
|
2019-12-26 13:43:33 +01:00
|
|
|
|
|
2020-03-13 19:28:14 -07:00
|
|
|
LL | fn with_trait<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
|
2021-06-21 19:07:19 -07:00
|
|
|
| ++++++++++++++++
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `dyn CompareToInts: CompareTo<i32>` is not satisfied
|
2023-08-26 19:25:46 +00:00
|
|
|
--> $DIR/repeated-supertrait-ambig.rs:34:6
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-03-07 18:47:39 +03:00
|
|
|
LL | <dyn CompareToInts>::same_as(c, 22)
|
2023-08-26 19:25:46 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^ the trait `CompareTo<i32>` is not implemented for `dyn CompareToInts`
|
2021-12-13 20:56:40 +00:00
|
|
|
|
|
2022-03-27 02:02:07 +00:00
|
|
|
= help: the following other types implement trait `CompareTo<T>`:
|
2024-06-07 14:54:42 +00:00
|
|
|
`i64` implements `CompareTo<i64>`
|
|
|
|
|
`i64` implements `CompareTo<u64>`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `C: CompareTo<i32>` is not satisfied
|
2025-07-07 16:43:30 +08:00
|
|
|
--> $DIR/repeated-supertrait-ambig.rs:38:24
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | CompareTo::same_as(c, 22)
|
2025-07-07 16:43:30 +08:00
|
|
|
| ------------------ ^ the trait `CompareTo<i32>` is not implemented for `C`
|
2022-08-16 06:27:22 +00:00
|
|
|
| |
|
|
|
|
|
| required by a bound introduced by this call
|
2019-12-26 13:43:33 +01:00
|
|
|
|
|
2024-11-28 21:57:48 +00:00
|
|
|
help: consider further restricting type parameter `C` with trait `CompareTo`
|
2019-12-26 13:43:33 +01:00
|
|
|
|
|
2020-03-13 19:28:14 -07:00
|
|
|
LL | fn with_ufcs2<C:CompareToInts + CompareTo<i32>>(c: &C) -> bool {
|
2021-06-21 19:07:19 -07:00
|
|
|
| ++++++++++++++++
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `i64: CompareTo<i32>` is not satisfied
|
2022-08-17 01:28:26 +00:00
|
|
|
--> $DIR/repeated-supertrait-ambig.rs:42:31
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | assert_eq!(22_i64.same_as(22), true);
|
2022-08-17 01:28:26 +00:00
|
|
|
| ------- ^^ the trait `CompareTo<i32>` is not implemented for `i64`
|
|
|
|
|
| |
|
|
|
|
|
| required by a bound introduced by this call
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2022-03-27 02:02:07 +00:00
|
|
|
= help: the following other types implement trait `CompareTo<T>`:
|
2024-06-07 14:54:42 +00:00
|
|
|
`i64` implements `CompareTo<i64>`
|
|
|
|
|
`i64` implements `CompareTo<u64>`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|