summaryrefslogtreecommitdiffstats
path: root/tests/ui/methods/method-self-arg-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/methods/method-self-arg-1.rs')
-rw-r--r--tests/ui/methods/method-self-arg-1.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/methods/method-self-arg-1.rs b/tests/ui/methods/method-self-arg-1.rs
index f589f20d8..5912b4ec2 100644
--- a/tests/ui/methods/method-self-arg-1.rs
+++ b/tests/ui/methods/method-self-arg-1.rs
@@ -9,9 +9,9 @@ impl Foo {
fn main() {
let x = Foo;
Foo::bar(x); //~ ERROR mismatched types
- //~| expected `&Foo`, found struct `Foo`
+ //~| expected `&Foo`, found `Foo`
Foo::bar(&42); //~ ERROR mismatched types
- //~| expected struct `Foo`, found integer
+ //~| expected `&Foo`, found `&{integer}`
//~| expected reference `&Foo`
//~| found reference `&{integer}`
}