]> git.proxmox.com Git - rustc.git/blob - src/test/ui/self/self-infer.stderr
Update unsuspicious file list
[rustc.git] / src / test / 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`.