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 15:56:47 +00:00
--> $DIR/method-missing-call.rs:22:26
|
2019-03-09 12:03:44 +00:00
LL | .get_x;
2020-03-22 18:18:06 +00:00
| ^^^^^ method, not a field
|
help: use parentheses to call the method
|
LL | .get_x();
| ++
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 15:56:47 +00:00
--> $DIR/method-missing-call.rs:29:16
|
2019-03-09 12:03:44 +00:00
LL | .filter_map;
2020-03-22 18:18:06 +00: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 14:59:40 +00:00
For more information about this error, try `rustc --explain E0615`.