summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binop/issue-93927.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binop/issue-93927.stderr')
-rw-r--r--src/test/ui/binop/issue-93927.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/binop/issue-93927.stderr b/src/test/ui/binop/issue-93927.stderr
new file mode 100644
index 000000000..75558b502
--- /dev/null
+++ b/src/test/ui/binop/issue-93927.stderr
@@ -0,0 +1,16 @@
+error[E0369]: binary operation `==` cannot be applied to type `MyType<T>`
+ --> $DIR/issue-93927.rs:14:9
+ |
+LL | val == val
+ | --- ^^ --- MyType<T>
+ | |
+ | MyType<T>
+ |
+help: consider further restricting this bound
+ |
+LL | fn cond<T: PartialEq + std::cmp::Eq>(val: MyType<T>) -> bool {
+ | ++++++++++++++
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0369`.