summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-99910-const-let-mutually-exclusive.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issue-99910-const-let-mutually-exclusive.rs')
-rw-r--r--tests/ui/parser/issue-99910-const-let-mutually-exclusive.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/parser/issue-99910-const-let-mutually-exclusive.rs b/tests/ui/parser/issue-99910-const-let-mutually-exclusive.rs
new file mode 100644
index 000000000..50520971f
--- /dev/null
+++ b/tests/ui/parser/issue-99910-const-let-mutually-exclusive.rs
@@ -0,0 +1,8 @@
+// run-rustfix
+
+fn main() {
+ const let _FOO: i32 = 123;
+ //~^ ERROR const` and `let` are mutually exclusive
+ let const _BAR: i32 = 123;
+ //~^ ERROR `const` and `let` are mutually exclusive
+}