rust/tests/ui/suggestions/recover-missing-turbofish-surrounding-angle-braket.rs

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

11 lines
524 B
Rust
Raw Normal View History

fn main() {
let _ = vec![1, 2, 3].into_iter().collect::Vec<_>();
//~^ ERROR generic parameters without surrounding angle brackets
let _ = vec![1, 2, 3].into_iter().collect::Vec<_>>>>();
//~^ ERROR generic parameters without surrounding angle brackets
let _ = vec![1, 2, 3].into_iter().collect::Vec<_>>>();
//~^ ERROR generic parameters without surrounding angle brackets
let _ = vec![1, 2, 3].into_iter().collect::Vec<_>>();
//~^ ERROR generic parameters without surrounding angle brackets
}