fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
463 B16 linesraw
1error[E0369]: binary operation `==` cannot be applied to type `MyType<T>`
2  --> $DIR/issue-93927.rs:14:9
3   |
4LL |     val == val
5   |     --- ^^ --- MyType<T>
6   |     |
7   |     MyType<T>
8   |
9help: consider further restricting this bound
10   |
11LL | fn cond<T: PartialEq + std::cmp::Eq>(val: MyType<T>) -> bool {
12   |                      ++++++++++++++
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0369`.