fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
918 B25 linesraw
1error[E0615]: attempted to take value of method `get_x` on type `Point`
2  --> $DIR/method-missing-call.rs:22:26
3   |
4LL |                         .get_x;
5   |                          ^^^^^ method, not a field
6   |
7help: use parentheses to call the method
8   |
9LL |                         .get_x();
10   |                               ++
11
12error[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   |
15LL |               .filter_map;
16   |                ^^^^^^^^^^ method, not a field
17   |
18help: use parentheses to call the method
19   |
20LL |               .filter_map(_);
21   |                          +++
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0615`.