2020-06-23 19:32:06 -05:00
|
|
|
// run-rustfix
|
|
|
|
|
2020-06-24 18:17:04 -05:00
|
|
|
pub fn foo<T: std::cmp::PartialEq>(s: &[T], t: &[T]) {
|
|
|
|
let _ = s == t; //~ ERROR binary operation `==` cannot be applied to type `&[T]`
|
2020-06-23 19:32:06 -05:00
|
|
|
}
|
2020-06-24 18:17:04 -05:00
|
|
|
|
2020-06-23 19:32:06 -05:00
|
|
|
fn main() {}
|