fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
940 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 `std::iter::Filter<std::iter::Map<std::slice::Iter<'_, {integer}>, [closure@$DIR/method-missing-call.rs:27:20: 27:25]>, [closure@$DIR/method-missing-call.rs:28:23: 28:35]>`
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`.