summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/method-missing-parentheses.rs
blob: f10bfb56d2e1271a0b13d66ae2a31802a809ef14 (plain)
1
2
3
4
5
fn main() {
    let _ = vec![].into_iter().collect::<usize>;
    //~^ ERROR attempted to take value of method `collect` on type `std::vec::IntoIter<_>`
    //~| ERROR field expressions cannot have generic arguments
}