about summary refs log tree commit diff
path: root/tests/ui/operator-recovery/less-than-greater-than.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/operator-recovery/less-than-greater-than.rs')
-rw-r--r--tests/ui/operator-recovery/less-than-greater-than.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/operator-recovery/less-than-greater-than.rs b/tests/ui/operator-recovery/less-than-greater-than.rs
new file mode 100644
index 00000000000..2beed528ff1
--- /dev/null
+++ b/tests/ui/operator-recovery/less-than-greater-than.rs
@@ -0,0 +1,4 @@
+fn main() {
+    println!("{}", 1 <> 2);
+    //~^ERROR invalid comparison operator `<>`
+}