about summary refs log tree commit diff
path: root/tests/ui/missing-trait-bounds/missing-trait-bound-for-op.rs
blob: 06d60cbeae65f19534e5fd621de0d136dcd280b0 (plain)
1
2
3
4
5
6
7
//@ run-rustfix

pub fn foo<T>(s: &[T], t: &[T]) {
    let _ = s == t; //~ ERROR binary operation `==` cannot be applied to type `&[T]`
}

fn main() {}