]> git.lizzy.rs Git - rust.git/blob - src/test/ui/where-clauses/where-clauses-unsatisfied.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.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: std::cmp::Eq` is not satisfied
8 }