fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
712 B25 linesraw
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`.