diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2021-06-19 07:02:40 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2021-06-22 00:40:47 +0800 |
| commit | 9b6c7ffa0601643aa1724d6552b276a7f4496aa0 (patch) | |
| tree | c2906122773130fde5259e766085b3e10350c6c4 /src/test/ui/self | |
| parent | 200fdaac777b8c0a4d5cf2be86f639c61358d518 (diff) | |
Updated tests to reflect specified types in E0121
Diffstat (limited to 'src/test/ui/self')
| -rw-r--r-- | src/test/ui/self/self-infer.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/self/self-infer.stderr | 4 |
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 0956f2a5691..cc17d8f8e39 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 sig - fn g(self: &_) {} //~ERROR the type placeholder `_` is not allowed within types on item sig + 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 main() {} diff --git a/src/test/ui/self/self-infer.stderr b/src/test/ui/self/self-infer.stderr index 1475b212b56..8d70c6287e5 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 +error[E0121]: the type 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 +error[E0121]: the type placeholder `_` is not allowed within types on item signatures for functions --> $DIR/self-infer.rs:5:17 | LL | fn g(self: &_) {} |
