summaryrefslogtreecommitdiffstats
path: root/tests/ui/partialeq_help.rs
blob: 34b88b8a866850f8a8af2f79c8500691f52d25e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn foo<T: PartialEq>(a: &T, b: T) {
    a == b; //~ ERROR E0277
}

fn foo2<T: PartialEq>(a: &T, b: T) where {
    a == b; //~ ERROR E0277
}

fn main() {
    foo(&1, 1);
    foo2(&1, 1);
}