fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
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}