rust/src/test/ui/parser/issues/issue-54521-2.rs
Badel2 8c8914ecab Move parser tests to parser/issues subdirectory
Because the parser directory has already reached the 1000 file limit.
2021-11-20 14:52:21 +01:00

22 lines
525 B
Rust

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