summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/js-style-comparison-op.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/suggestions/js-style-comparison-op.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/js-style-comparison-op.rs b/src/test/ui/suggestions/js-style-comparison-op.rs
new file mode 100644
index 000000000..c89c1052e
--- /dev/null
+++ b/src/test/ui/suggestions/js-style-comparison-op.rs
@@ -0,0 +1,8 @@
+// run-rustfix
+fn main() {
+ if 1 === 1 { //~ ERROR invalid comparison operator `===`
+ println!("yup!");
+ } else if 1 !== 1 { //~ ERROR invalid comparison operator `!==`
+ println!("nope!");
+ }
+}