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