]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/self-infer.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[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: _) {} //~ERROR the type placeholder `_` is not allowed within types on item sig
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: &_) {} //~ERROR the type placeholder `_` is not allowed within types on item sig
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`.