rust/tests/ui/suggestions/method-missing-parentheses.rs

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

6 lines
217 B
Rust
Raw Normal View History

fn main() {
let _ = vec![].into_iter().collect::<usize>;
//~^ ERROR attempted to take value of method `collect` on type `std::vec::IntoIter<_>`
2020-02-10 21:58:36 +00:00
//~| ERROR field expressions cannot have generic arguments
}