rust/src/test/ui/partialeq_help.rs
2018-12-25 21:08:33 -07:00

8 lines
97 B
Rust

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