2020-06-23 17:32:06 -07:00
|
|
|
error[E0369]: binary operation `==` cannot be applied to type `&[T]`
|
2020-06-24 16:17:04 -07:00
|
|
|
--> $DIR/missing-trait-bound-for-op.rs:4:15
|
2020-06-23 17:32:06 -07:00
|
|
|
|
|
2020-06-24 16:17:04 -07:00
|
|
|
LL | let _ = s == t;
|
|
|
|
| - ^^ - &[T]
|
|
|
|
| |
|
|
|
|
| &[T]
|
2020-06-23 17:32:06 -07:00
|
|
|
|
|
|
|
|
help: consider restricting type parameter `T`
|
|
|
|
|
|
2020-06-24 16:17:04 -07:00
|
|
|
LL | pub fn foo<T: std::cmp::PartialEq>(s: &[T], t: &[T]) {
|
2021-06-21 19:07:19 -07:00
|
|
|
| +++++++++++++++++++++
|
2020-06-23 17:32:06 -07:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-06-23 17:32:06 -07:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0369`.
|