mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-15 06:42:57 +00:00
23 lines
516 B
Plaintext
23 lines
516 B
Plaintext
//@ 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
|
|
}
|