]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing-trait-bounds/missing-trait-bound-for-op.stderr
Rollup merge of #98692 - camelid:more-fixmes, r=GuillaumeGomez
[rust.git] / src / test / ui / missing-trait-bounds / missing-trait-bound-for-op.stderr
1 error[E0369]: binary operation `==` cannot be applied to type `&[T]`
2   --> $DIR/missing-trait-bound-for-op.rs:4:15
3    |
4 LL |     let _ = s == t;
5    |             - ^^ - &[T]
6    |             |
7    |             &[T]
8    |
9 help: consider restricting type parameter `T`
10    |
11 LL | pub fn foo<T: std::cmp::PartialEq>(s: &[T], t: &[T]) {
12    |             +++++++++++++++++++++
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0369`.