]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing-trait-bounds/missing-trait-bound-for-op.rs
Rollup merge of #99516 - m-ou-se:proc-macro-tracked-tracking-issue, r=Mark-Simulacrum
[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() {}