summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0277-3.rs
blob: 428be79617d7feebf7b1a147b16e203f8801c092 (plain)
1
2
3
4
5
6
7
8
fn foo<T: PartialEq>(_: T) {}

struct S;

fn main() {
    foo(S);
    //~^ ERROR can't compare `S` with `S`
}