blob: 0f3d9232ca1ec7523017ac49c7373a66ef482f59 [file] [log] [blame]
//@ 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
}