diff options
| author | Andy Russell <arussell123@gmail.com> | 2019-01-02 17:01:03 -0500 |
|---|---|---|
| committer | Andy Russell <arussell123@gmail.com> | 2019-01-03 13:42:52 -0500 |
| commit | e3fe0ee97b95abd13e257fa92c70248c0746165c (patch) | |
| tree | 62123e7745fe7bdb6fe6a63251ffd9156a9332f0 /src/test/ui/methods | |
| parent | cae164753f557f668cb75610abda4f790981e5e6 (diff) | |
| download | rust-e3fe0ee97b95abd13e257fa92c70248c0746165c.tar.gz rust-e3fe0ee97b95abd13e257fa92c70248c0746165c.zip | |
use structured suggestion for method calls
Furthermore, don't suggest calling the method if it is part of a place expression, as this is invalid syntax.
Diffstat (limited to 'src/test/ui/methods')
| -rw-r--r-- | src/test/ui/methods/method-missing-call.stderr | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/test/ui/methods/method-missing-call.stderr b/src/test/ui/methods/method-missing-call.stderr index 22c907ed002..886d92aa925 100644 --- a/src/test/ui/methods/method-missing-call.stderr +++ b/src/test/ui/methods/method-missing-call.stderr @@ -2,17 +2,13 @@ error[E0615]: attempted to take value of method `get_x` on type `Point` --> $DIR/method-missing-call.rs:22:26 | LL | .get_x;//~ ERROR attempted to take value of method `get_x` on type `Point` - | ^^^^^ - | - = help: maybe a `()` to call it is missing? + | ^^^^^ help: use parentheses to call the method: `get_x()` error[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]>` --> $DIR/method-missing-call.rs:29:16 | LL | .filter_map; //~ ERROR attempted to take value of method `filter_map` on type - | ^^^^^^^^^^ - | - = help: maybe a `()` to call it is missing? + | ^^^^^^^^^^ help: use parentheses to call the method: `filter_map(...)` error: aborting due to 2 previous errors |
