diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2020-01-08 08:05:31 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2020-01-08 08:05:31 -0800 |
| commit | 2c5766f2d4b329f73d144a000c7cc5136f49cad0 (patch) | |
| tree | a9df1d2c8fd960465af50b4109ccc4420437f02b /src/test/ui/methods | |
| parent | 56446fef49d73212f63ea7aa0680d5d602f19b9a (diff) | |
| download | rust-2c5766f2d4b329f73d144a000c7cc5136f49cad0.tar.gz rust-2c5766f2d4b329f73d144a000c7cc5136f49cad0.zip | |
Unify output of "variant not found" errors
Diffstat (limited to 'src/test/ui/methods')
| -rw-r--r-- | src/test/ui/methods/method-call-err-msg.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/methods/method-call-err-msg.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/methods/method-call-err-msg.rs b/src/test/ui/methods/method-call-err-msg.rs index e0dec0a4a70..5ff4b412667 100644 --- a/src/test/ui/methods/method-call-err-msg.rs +++ b/src/test/ui/methods/method-call-err-msg.rs @@ -15,6 +15,6 @@ fn main() { let y = Foo; y.zero() - .take() //~ ERROR no method named `take` found for type `Foo` in the current scope + .take() //~ ERROR no method named `take` found .one(0); } diff --git a/src/test/ui/methods/method-call-err-msg.stderr b/src/test/ui/methods/method-call-err-msg.stderr index 94c27b7d178..7efdd91708a 100644 --- a/src/test/ui/methods/method-call-err-msg.stderr +++ b/src/test/ui/methods/method-call-err-msg.stderr @@ -25,7 +25,7 @@ LL | fn two(self, _: isize, _: isize) -> Foo { self } LL | .two(0); | ^^^ expected 2 parameters -error[E0599]: no method named `take` found for type `Foo` in the current scope +error[E0599]: no method named `take` found for struct `Foo` in the current scope --> $DIR/method-call-err-msg.rs:18:7 | LL | pub struct Foo; |
