]> git.proxmox.com Git - rustc.git/blame - src/test/ui/missing-trait-bounds/missing-trait-bound-for-op.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / missing-trait-bounds / missing-trait-bound-for-op.rs
CommitLineData
f035d41b
XL
1// run-rustfix
2
3pub fn foo<T>(s: &[T], t: &[T]) {
4 let _ = s == t; //~ ERROR binary operation `==` cannot be applied to type `&[T]`
5}
6
7fn main() {}