]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/method-missing-parentheses.stderr
review comment: wording
[rust.git] / src / test / ui / suggestions / method-missing-parentheses.stderr
1 error: field expressions cannot have generic arguments
2   --> $DIR/method-missing-parentheses.rs:2:41
3    |
4 LL |     let _ = vec![].into_iter().collect::<usize>;
5    |                                         ^^^^^^^
6
7 error[E0615]: attempted to take value of method `collect` on type `std::vec::IntoIter<_>`
8   --> $DIR/method-missing-parentheses.rs:2:32
9    |
10 LL |     let _ = vec![].into_iter().collect::<usize>;
11    |                                ^^^^^^^---------
12    |                                |
13    |                                help: use parentheses to call the method: `collect::<usize>()`
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0615`.