summary refs log tree commit diff
path: root/src/test/ui/methods
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-03-11 20:38:21 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-03-22 10:36:45 -0700
commit52fbd3e5690bfe008b343bdc35c78390239b64cc (patch)
tree78cd09ee3f9b39bddc4bcc2cb3ea00f3fbd7ff2b /src/test/ui/methods
parent5ae85f43f4eeaf177cd12f47958b7ff62786b612 (diff)
downloadrust-52fbd3e5690bfe008b343bdc35c78390239b64cc.tar.gz
rust-52fbd3e5690bfe008b343bdc35c78390239b64cc.zip
Increase verbosity when suggesting subtle code changes
Diffstat (limited to 'src/test/ui/methods')
-rw-r--r--src/test/ui/methods/method-missing-call.stderr14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/test/ui/methods/method-missing-call.stderr b/src/test/ui/methods/method-missing-call.stderr
index 3ab5f66a0c3..23f8970e9e7 100644
--- a/src/test/ui/methods/method-missing-call.stderr
+++ b/src/test/ui/methods/method-missing-call.stderr
@@ -2,13 +2,23 @@ error[E0615]: attempted to take value of method `get_x` on type `Point`
   --> $DIR/method-missing-call.rs:22:26
    |
 LL |                         .get_x;
-   |                          ^^^^^ help: use parentheses to call the method: `get_x()`
+   |                          ^^^^^
+   |
+help: use parentheses to call the method
+   |
+LL |                         .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;
-   |                ^^^^^^^^^^ help: use parentheses to call the method: `filter_map(...)`
+   |                ^^^^^^^^^^
+   |
+help: use parentheses to call the method
+   |
+LL |               .filter_map(_);
+   |                          ^^^
 
 error: aborting due to 2 previous errors