]> git.lizzy.rs Git - rust.git/blob - tests/ui/where-clauses/where-clauses-unsatisfied.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / where-clauses / where-clauses-unsatisfied.rs
1 fn equal<T>(a: &T, b: &T) -> bool where T : Eq { a == b }
2
3 struct Struct;
4
5 fn main() {
6     drop(equal(&Struct, &Struct))
7     //~^ ERROR the trait bound `Struct: Eq` is not satisfied
8 }