about summary refs log tree commit diff
path: root/tests/ui/parser/removed-syntax/removed-syntax-fixed-vec.rs
diff options
context:
space:
mode:
authorxizheyin <xizheyin@smail.nju.edu.cn>2025-07-14 04:28:20 +0800
committerxizheyin <xizheyin@smail.nju.edu.cn>2025-07-15 12:00:46 +0800
commited88af21637ff3677100fd26f8db354cd6134ad4 (patch)
treed03f55a747f4481c6674f693f42131663bfee0ce /tests/ui/parser/removed-syntax/removed-syntax-fixed-vec.rs
parent1cac8cbde98e7b15ad24fc96af4864cdd67b9c30 (diff)
downloadrust-ed88af21637ff3677100fd26f8db354cd6134ad4.tar.gz
rust-ed88af21637ff3677100fd26f8db354cd6134ad4.zip
Recover and suggest use `;` to construct array type
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
Diffstat (limited to 'tests/ui/parser/removed-syntax/removed-syntax-fixed-vec.rs')
-rw-r--r--tests/ui/parser/removed-syntax/removed-syntax-fixed-vec.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/ui/parser/removed-syntax/removed-syntax-fixed-vec.rs b/tests/ui/parser/removed-syntax/removed-syntax-fixed-vec.rs
index 560efecb91c..fb9a1c643fc 100644
--- a/tests/ui/parser/removed-syntax/removed-syntax-fixed-vec.rs
+++ b/tests/ui/parser/removed-syntax/removed-syntax-fixed-vec.rs
@@ -1 +1,6 @@
-type v = [isize * 3]; //~ ERROR expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `*`
+type v = [isize * 3];
+//~^ ERROR expected `;` or `]`, found `*`
+//~| WARN type `v` should have an upper camel case name [non_camel_case_types]
+
+
+fn main() {}