summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-54521-2.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-54521-2.fixed')
-rw-r--r--tests/ui/parser/issues/issue-54521-2.fixed22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-54521-2.fixed b/tests/ui/parser/issues/issue-54521-2.fixed
new file mode 100644
index 000000000..a91c4fe43
--- /dev/null
+++ b/tests/ui/parser/issues/issue-54521-2.fixed
@@ -0,0 +1,22 @@
+// run-rustfix
+
+// This test checks that the following error is emitted and the suggestion works:
+//
+// ```
+// let _ = Vec::<usize>>>::new();
+// ^^ help: remove extra angle brackets
+// ```
+
+fn main() {
+ let _ = Vec::<usize>::new();
+ //~^ ERROR unmatched angle bracket
+
+ let _ = Vec::<usize>::new();
+ //~^ ERROR unmatched angle bracket
+
+ let _ = Vec::<usize>::new();
+ //~^ ERROR unmatched angle bracket
+
+ let _ = Vec::<usize>::new();
+ //~^ ERROR unmatched angle bracket
+}