]> git.lizzy.rs Git - rust.git/blob - tests/ui/missing-trait-bounds/missing-trait-bound-for-op.fixed
Rollup merge of #106831 - estebank:tickets_yaml, r=Mark-Simulacrum
[rust.git] / tests / ui / missing-trait-bounds / missing-trait-bound-for-op.fixed
1 // run-rustfix
2
3 pub fn foo<T: std::cmp::PartialEq>(s: &[T], t: &[T]) {
4     let _ = s == t; //~ ERROR binary operation `==` cannot be applied to type `&[T]`
5 }
6
7 fn main() {}