fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.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}