]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/missing-trait-bound-for-op.rs
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / suggestions / missing-trait-bound-for-op.rs
1 // run-rustfix
2
3 pub fn foo<T>(s: &[T], t: &[T]) {
4     let _ = s == t; //~ ERROR binary operation `==` cannot be applied to type `&[T]`
5 }
6
7 fn main() {}