summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issue-101477-let.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/issue-101477-let.rs')
-rw-r--r--src/test/ui/parser/issue-101477-let.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/parser/issue-101477-let.rs b/src/test/ui/parser/issue-101477-let.rs
new file mode 100644
index 000000000..8b0e8bee1
--- /dev/null
+++ b/src/test/ui/parser/issue-101477-let.rs
@@ -0,0 +1,6 @@
+// run-rustfix
+
+fn main() {
+ let x == 2; //~ ERROR unexpected `==`
+ println!("x: {}", x)
+}