]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-54521-2.rs
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / ui / parser / issues / issue-54521-2.rs
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 }