]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/method-missing-parentheses.stderr
Rollup merge of #106751 - clubby789:const-intrinsic, r=GuillaumeGomez
[rust.git] / tests / 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    |                                ^^^^^^^ method, not a field
12    |
13 help: use parentheses to call the method
14    |
15 LL |     let _ = vec![].into_iter().collect::<usize>();
16    |                                                ++
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0615`.