rust/tests/ui/parser/issues/issue-54521-2.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
515 B
Rust
Raw Normal View History

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