]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binop/issue-93927.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / binop / issue-93927.stderr
1 error[E0369]: binary operation `==` cannot be applied to type `MyType<T>`
2   --> $DIR/issue-93927.rs:14:9
3    |
4 LL |     val == val
5    |     --- ^^ --- MyType<T>
6    |     |
7    |     MyType<T>
8    |
9 help: consider further restricting this bound
10    |
11 LL | fn cond<T: PartialEq + std::cmp::Eq>(val: MyType<T>) -> bool {
12    |                      ++++++++++++++
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0369`.