blob: 83620e5cf3a374486605e04bed5b5cffd8d031a5 [file] [log] [blame]
fn equal<T>(a: &T, b: &T) -> bool where T : Eq { a == b }
struct Struct;
fn main() {
drop(equal(&Struct, &Struct))
//~^ ERROR the trait bound `Struct: std::cmp::Eq` is not satisfied
}