about 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-01-08 08:05:31 -0800
committerEsteban Küber <esteban@kuber.com.ar>2020-01-08 08:05:31 -0800
commit2c5766f2d4b329f73d144a000c7cc5136f49cad0 (patch)
treea9df1d2c8fd960465af50b4109ccc4420437f02b /src/test/ui/methods
parent56446fef49d73212f63ea7aa0680d5d602f19b9a (diff)
downloadrust-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.rs2
-rw-r--r--src/test/ui/methods/method-call-err-msg.stderr2
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;