]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/self-infer.stderr
Fixing bad suggestion for `_` in `const` type when a function #81885
[rust.git] / src / test / ui / self / self-infer.stderr
1 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
2   --> $DIR/self-infer.rs:4:16
3    |
4 LL |     fn f(self: _) {}
5    |                ^ not allowed in type signatures
6
7 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
8   --> $DIR/self-infer.rs:5:17
9    |
10 LL |     fn g(self: &_) {}
11    |                 ^ not allowed in type signatures
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0121`.