2022-01-05 10:43:21 +00:00
|
|
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/self-infer.rs:4:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn f(self: _) {}
|
2019-12-24 21:18:09 +00:00
|
|
|
| ^ not allowed in type signatures
|
2019-12-23 22:16:34 +00:00
|
|
|
|
|
|
|
|
help: use type parameters instead
|
|
|
|
|
|
|
|
|
LL | fn f<T>(self: T) {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++ ~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2022-01-05 10:43:21 +00:00
|
|
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
|
2020-02-27 23:59:08 +00:00
|
|
|
--> $DIR/self-infer.rs:5:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn g(self: &_) {}
|
2019-12-24 21:18:09 +00:00
|
|
|
| ^ not allowed in type signatures
|
2019-12-23 22:16:34 +00:00
|
|
|
|
|
|
|
|
help: use type parameters instead
|
|
|
|
|
|
|
|
|
LL | fn g<T>(self: &T) {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++ ~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-02-27 23:59:08 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0121`.
|