fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
515 B22 linesraw
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
10fn 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}