]> git.lizzy.rs Git - rust.git/blob - tests/ui/partialeq_help.rs
Modify existing bounds if they exist
[rust.git] / tests / ui / partialeq_help.rs
1 fn foo<T: PartialEq>(a: &T, b: T) {
2     a == b; //~ ERROR E0277
3 }
4
5 fn foo2<T: PartialEq>(a: &T, b: T) where {
6     a == b; //~ ERROR E0277
7 }
8
9 fn main() {
10     foo(&1, 1);
11     foo2(&1, 1);
12 }