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/error-codes | |
| 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/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0615.stderr | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/ui/error-codes/E0615.stderr b/src/test/ui/error-codes/E0615.stderr index 423948666db..d86ee5b9b4b 100644 --- a/src/test/ui/error-codes/E0615.stderr +++ b/src/test/ui/error-codes/E0615.stderr @@ -2,9 +2,7 @@ error[E0615]: attempted to take value of method `method` on type `Foo` --> $DIR/E0615.rs:11:7 | LL | f.method; //~ ERROR E0615 - | ^^^^^^ - | - = help: maybe a `()` to call it is missing? + | ^^^^^^ help: use parentheses to call the method: `method()` error: aborting due to previous error |
