diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2020-03-22 11:18:06 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2020-03-22 11:18:06 -0700 |
| commit | 94bbd46682fdf37aae7fe661e9f925649d439c36 (patch) | |
| tree | 978da85387d0c1e989fd3d4e607b7a8c122d5f04 /src/test/ui/methods | |
| parent | 52fbd3e5690bfe008b343bdc35c78390239b64cc (diff) | |
| download | rust-94bbd46682fdf37aae7fe661e9f925649d439c36.tar.gz rust-94bbd46682fdf37aae7fe661e9f925649d439c36.zip | |
Add span label to primary error span
Diffstat (limited to 'src/test/ui/methods')
| -rw-r--r-- | src/test/ui/methods/assign-to-method.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/methods/method-missing-call.stderr | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/methods/assign-to-method.stderr b/src/test/ui/methods/assign-to-method.stderr index c0dd529b681..cafe9abae04 100644 --- a/src/test/ui/methods/assign-to-method.stderr +++ b/src/test/ui/methods/assign-to-method.stderr @@ -2,7 +2,7 @@ error[E0615]: attempted to take value of method `speak` on type `Cat` --> $DIR/assign-to-method.rs:22:10 | LL | nyan.speak = || println!("meow"); - | ^^^^^ + | ^^^^^ method, not a field | = help: methods are immutable and cannot be assigned to @@ -10,7 +10,7 @@ error[E0615]: attempted to take value of method `speak` on type `Cat` --> $DIR/assign-to-method.rs:23:10 | LL | nyan.speak += || println!("meow"); - | ^^^^^ + | ^^^^^ method, not a field | = help: methods are immutable and cannot be assigned to diff --git a/src/test/ui/methods/method-missing-call.stderr b/src/test/ui/methods/method-missing-call.stderr index 23f8970e9e7..bc8a1c85e56 100644 --- a/src/test/ui/methods/method-missing-call.stderr +++ b/src/test/ui/methods/method-missing-call.stderr @@ -2,7 +2,7 @@ error[E0615]: attempted to take value of method `get_x` on type `Point` --> $DIR/method-missing-call.rs:22:26 | LL | .get_x; - | ^^^^^ + | ^^^^^ method, not a field | help: use parentheses to call the method | @@ -13,7 +13,7 @@ error[E0615]: attempted to take value of method `filter_map` on type `std::iter: --> $DIR/method-missing-call.rs:29:16 | LL | .filter_map; - | ^^^^^^^^^^ + | ^^^^^^^^^^ method, not a field | help: use parentheses to call the method | |
