]> git.lizzy.rs Git - rust.git/blob - tests/ui/self/self-infer.stderr
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / ui / self / self-infer.stderr
1 error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
2   --> $DIR/self-infer.rs:4:16
3    |
4 LL |     fn f(self: _) {}
5    |                ^ not allowed in type signatures
6    |
7 help: use type parameters instead
8    |
9 LL |     fn f<T>(self: T) {}
10    |         +++       ~
11
12 error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
13   --> $DIR/self-infer.rs:5:17
14    |
15 LL |     fn g(self: &_) {}
16    |                 ^ not allowed in type signatures
17    |
18 help: use type parameters instead
19    |
20 LL |     fn g<T>(self: &T) {}
21    |         +++        ~
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0121`.