fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

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