]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-54521-2.fixed
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / parser / issues / issue-54521-2.fixed
1 // run-rustfix
2
3 // This test checks that the following error is emitted and the suggestion works:
4 //
5 // ```
6 // let _ = Vec::<usize>>>::new();
7 //                     ^^ help: remove extra angle brackets
8 // ```
9
10 fn main() {
11     let _ = Vec::<usize>::new();
12     //~^ ERROR unmatched angle bracket
13
14     let _ = Vec::<usize>::new();
15     //~^ ERROR unmatched angle bracket
16
17     let _ = Vec::<usize>::new();
18     //~^ ERROR unmatched angle bracket
19
20     let _ = Vec::<usize>::new();
21     //~^ ERROR unmatched angle bracket
22 }