summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/method-missing-parentheses.stderr
blob: 1bfff56a6a906cae07101430b755d8fe7c3406b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: field expressions cannot have generic arguments
  --> $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>;
   |                                ^^^^^^^ method, not a field
   |
help: use parentheses to call the method
   |
LL |     let _ = vec![].into_iter().collect::<usize>();
   |                                                ++

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0615`.