2024-02-16 20:02:50 +00:00
|
|
|
//@ run-rustfix
|
2020-06-23 17:32:06 -07:00
|
|
|
|
2020-06-24 16:17:04 -07:00
|
|
|
pub fn foo<T>(s: &[T], t: &[T]) {
|
|
|
|
let _ = s == t; //~ ERROR binary operation `==` cannot be applied to type `&[T]`
|
2020-06-23 17:32:06 -07:00
|
|
|
}
|
2020-06-24 16:17:04 -07:00
|
|
|
|
2020-06-23 17:32:06 -07:00
|
|
|
fn main() {}
|