fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0121]: the type placeholder `_` is not allowed within types on item signatures 2 --> $DIR/self-infer.rs:4:16 3 | 4LL | fn f(self: _) {} 5 | ^ not allowed in type signatures 6 | 7help: use type parameters instead 8 | 9LL | fn f<T>(self: T) {} 10 | ^^^ ^ 11 12error[E0121]: the type placeholder `_` is not allowed within types on item signatures 13 --> $DIR/self-infer.rs:5:17 14 | 15LL | fn g(self: &_) {} 16 | ^ not allowed in type signatures 17 | 18help: use type parameters instead 19 | 20LL | fn g<T>(self: &T) {} 21 | ^^^ ^ 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0121`.