]> git.proxmox.com Git - rustc.git/blob - src/test/ui/where-clauses/where-clauses-unsatisfied.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / 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 }