2020-02-10 13:58:36 -08:00
|
|
|
error: field expressions cannot have generic arguments
|
2020-02-08 20:02:54 -08:00
|
|
|
--> $DIR/method-missing-parentheses.rs:2:41
|
|
|
|
|
|
|
|
|
LL | let _ = vec![].into_iter().collect::<usize>;
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error[E0615]: attempted to take value of method `collect` on type `std::vec::IntoIter<_>`
|
|
|
|
--> $DIR/method-missing-parentheses.rs:2:32
|
|
|
|
|
|
|
|
|
LL | let _ = vec![].into_iter().collect::<usize>;
|
|
|
|
| ^^^^^^^---------
|
|
|
|
| |
|
|
|
|
| help: use parentheses to call the method: `collect::<usize>()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0615`.
|