fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
172 B7 linesraw
1// run-rustfix
2
3pub 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
7fn main() {}