rust/tests/ui/methods/method-missing-call.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
918 B
Plaintext
Raw Normal View History

error[E0615]: attempted to take value of method `get_x` on type `Point`
2018-12-25 09:56:47 -06:00
--> $DIR/method-missing-call.rs:22:26
|
2019-03-09 06:03:44 -06:00
LL | .get_x;
2020-03-22 13:18:06 -05:00
| ^^^^^ method, not a field
|
help: use parentheses to call the method
|
LL | .get_x();
| ++
2022-06-27 00:45:35 -05:00
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]>`
2018-12-25 09:56:47 -06:00
--> $DIR/method-missing-call.rs:29:16
|
2019-03-09 06:03:44 -06:00
LL | .filter_map;
2020-03-22 13:18:06 -05:00
| ^^^^^^^^^^ method, not a field
|
help: use parentheses to call the method
|
LL | .filter_map(_);
| +++
error: aborting due to 2 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0615`.