@@ -2,37 +2,49 @@ error[E0121]: the placeholder `_` is not allowed within types on item signatures
2
2
--> $DIR/infer-return-ty-for-fn-sig-issue-125488.rs:8:24
3
3
|
4
4
LL | fn f1(s: S<'_>) -> _ {
5
- | ^
6
- | |
7
- | not allowed in type signatures
8
- | help: replace with the correct return type: `S<'_>`
5
+ | ^ not allowed in type signatures
6
+ |
7
+ help: replace with the correct return type
8
+ |
9
+ LL - fn f1(s: S<'_>) -> _ {
10
+ LL + fn f1(s: S<'_>) -> S<'_> {
11
+ |
9
12
10
13
error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
11
14
--> $DIR/infer-return-ty-for-fn-sig-issue-125488.rs:13:24
12
15
|
13
16
LL | fn f2(s: S<'_>) -> _ {
14
- | ^
15
- | |
16
- | not allowed in type signatures
17
- | help: replace with the correct return type: `S<'_>`
17
+ | ^ not allowed in type signatures
18
+ |
19
+ help: replace with the correct return type
20
+ |
21
+ LL - fn f2(s: S<'_>) -> _ {
22
+ LL + fn f2(s: S<'_>) -> S<'_> {
23
+ |
18
24
19
25
error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
20
26
--> $DIR/infer-return-ty-for-fn-sig-issue-125488.rs:23:24
21
27
|
22
28
LL | fn f3(s: S<'_>) -> _ {
23
- | ^
24
- | |
25
- | not allowed in type signatures
26
- | help: replace with the correct return type: `S<'_>`
29
+ | ^ not allowed in type signatures
30
+ |
31
+ help: replace with the correct return type
32
+ |
33
+ LL - fn f3(s: S<'_>) -> _ {
34
+ LL + fn f3(s: S<'_>) -> S<'_> {
35
+ |
27
36
28
37
error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
29
38
--> $DIR/infer-return-ty-for-fn-sig-issue-125488.rs:28:24
30
39
|
31
40
LL | fn f4(s: S<'_>) -> _ {
32
- | ^
33
- | |
34
- | not allowed in type signatures
35
- | help: replace with the correct return type: `S<'_>`
41
+ | ^ not allowed in type signatures
42
+ |
43
+ help: replace with the correct return type
44
+ |
45
+ LL - fn f4(s: S<'_>) -> _ {
46
+ LL + fn f4(s: S<'_>) -> S<'_> {
47
+ |
36
48
37
49
error: aborting due to 4 previous errors
38
50
0 commit comments