]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-missing-call.stderr
move an `assert!` to the right place
[rust.git] / src / test / ui / methods / method-missing-call.stderr
1 error[E0615]: attempted to take value of method `get_x` on type `Point`
2   --> $DIR/method-missing-call.rs:22:26
3    |
4 LL |                         .get_x;
5    |                          ^^^^^ method, not a field
6    |
7 help: use parentheses to call the method
8    |
9 LL |                         .get_x();
10    |                               ++
11
12 error[E0615]: attempted to take value of method `filter_map` on type `Filter<Map<std::slice::Iter<'_, {integer}>, [closure@$DIR/method-missing-call.rs:27:20: 27:23]>, [closure@$DIR/method-missing-call.rs:28:23: 28:28]>`
13   --> $DIR/method-missing-call.rs:29:16
14    |
15 LL |               .filter_map;
16    |                ^^^^^^^^^^ method, not a field
17    |
18 help: use parentheses to call the method
19    |
20 LL |               .filter_map(_);
21    |                          +++
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0615`.