summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-54521-2.rs
blob: 3639aac87ee7fdae4b695fc02f47c1e378f51bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// run-rustfix

// This test checks that the following error is emitted and the suggestion works:
//
// ```
// let _ = Vec::<usize>>>::new();
//                     ^^ help: remove extra angle brackets
// ```

fn main() {
    let _ = Vec::<usize>>>>>::new();
    //~^ ERROR unmatched angle bracket

    let _ = Vec::<usize>>>>::new();
    //~^ ERROR unmatched angle bracket

    let _ = Vec::<usize>>>::new();
    //~^ ERROR unmatched angle bracket

    let _ = Vec::<usize>>::new();
    //~^ ERROR unmatched angle bracket
}