fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions 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 placeholder `_` is not allowed within types on item signatures for functions 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`.