2020-02-10 15:58:36 -06:00
|
|
|
error: field expressions cannot have generic arguments
|
2020-02-08 22:02:54 -06: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>;
|
2020-03-22 13:18:06 -05:00
|
|
|
| ^^^^^^^ method, not a field
|
2020-03-11 22:38:21 -05:00
|
|
|
|
|
|
|
|
help: use parentheses to call the method
|
|
|
|
|
|
|
|
|
LL | let _ = vec![].into_iter().collect::<usize>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ++
|
2020-02-08 22:02:54 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0615`.
|