mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-24 12:54:00 +00:00
23 lines
526 B
Rust
23 lines
526 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
|
||
|
}
|