mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
23 lines
711 B
Rust
23 lines
711 B
Rust
//@ run-rustfix
|
|
|
|
// This test checks that the following error is emitted and the suggestion works:
|
|
//
|
|
// ```
|
|
// let _ = vec![1, 2, 3].into_iter().collect::<Vec<usize>>>>();
|
|
// ^^ help: remove extra angle brackets
|
|
// ```
|
|
|
|
fn main() {
|
|
let _ = vec![1, 2, 3].into_iter().collect::<Vec<usize>>>>>>();
|
|
//~^ ERROR unmatched angle bracket
|
|
|
|
let _ = vec![1, 2, 3].into_iter().collect::<Vec<usize>>>>>();
|
|
//~^ ERROR unmatched angle bracket
|
|
|
|
let _ = vec![1, 2, 3].into_iter().collect::<Vec<usize>>>>();
|
|
//~^ ERROR unmatched angle bracket
|
|
|
|
let _ = vec![1, 2, 3].into_iter().collect::<Vec<usize>>>();
|
|
//~^ ERROR unmatched angle bracket
|
|
}
|