]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing-trait-bounds/missing-trait-bound-for-op.rs
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / ui / missing-trait-bounds / 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() {}