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