about summary refs log tree commit diff
path: root/src/test/ui/self
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-01-05 11:43:21 +0100
committerlcnr <rust@lcnr.de>2022-01-18 12:23:43 +0100
commitb2d8f0c77db87cc84551598ceba3f4e8615eb66c (patch)
tree7867c58ba587c6eb7f7928bd7fb3da22f9f695e1 /src/test/ui/self
parent621e60a54fc1b0b06517b354edd4fda006723f8f (diff)
downloadrust-b2d8f0c77db87cc84551598ceba3f4e8615eb66c.tar.gz
rust-b2d8f0c77db87cc84551598ceba3f4e8615eb66c.zip
generic_arg_infer: placeholder in signature err
Diffstat (limited to 'src/test/ui/self')
-rw-r--r--src/test/ui/self/self-infer.rs4
-rw-r--r--src/test/ui/self/self-infer.stderr4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/self/self-infer.rs b/src/test/ui/self/self-infer.rs
index cc17d8f8e39..9839b8880e9 100644
--- a/src/test/ui/self/self-infer.rs
+++ b/src/test/ui/self/self-infer.rs
@@ -1,8 +1,8 @@
 struct S;
 
 impl S {
-    fn f(self: _) {} //~ERROR the type placeholder `_` is not allowed within types on item signatures for functions
-    fn g(self: &_) {} //~ERROR the type placeholder `_` is not allowed within types on item signatures for functions
+    fn f(self: _) {} //~ERROR the placeholder `_` is not allowed within types on item signatures for functions
+    fn g(self: &_) {} //~ERROR the placeholder `_` is not allowed within types on item signatures for functions
 }
 
 fn main() {}
diff --git a/src/test/ui/self/self-infer.stderr b/src/test/ui/self/self-infer.stderr
index d3bf63efa40..4f9e3f21dca 100644
--- a/src/test/ui/self/self-infer.stderr
+++ b/src/test/ui/self/self-infer.stderr
@@ -1,4 +1,4 @@
-error[E0121]: the type placeholder `_` is not allowed within types on item signatures for functions
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
   --> $DIR/self-infer.rs:4:16
    |
 LL |     fn f(self: _) {}
@@ -9,7 +9,7 @@ help: use type parameters instead
 LL |     fn f<T>(self: T) {}
    |         +++       ~
 
-error[E0121]: the type placeholder `_` is not allowed within types on item signatures for functions
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
   --> $DIR/self-infer.rs:5:17
    |
 LL |     fn g(self: &_) {}