]> git.lizzy.rs Git - rust.git/blob - src/test/ui/partialeq_help.rs
Rollup merge of #95446 - notseanray:master, r=Mark-Simulacrum
[rust.git] / src / test / 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 }