@@ -2,37 +2,49 @@ error[E0121]: the placeholder `_` is not allowed within types on item signatures
22 --> $DIR/infer-return-ty-for-fn-sig-issue-125488.rs:8:24
33 |
44LL | 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+ |
912
1013error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
1114 --> $DIR/infer-return-ty-for-fn-sig-issue-125488.rs:13:24
1215 |
1316LL | 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+ |
1824
1925error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
2026 --> $DIR/infer-return-ty-for-fn-sig-issue-125488.rs:23:24
2127 |
2228LL | 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+ |
2736
2837error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
2938 --> $DIR/infer-return-ty-for-fn-sig-issue-125488.rs:28:24
3039 |
3140LL | 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+ |
3648
3749error: aborting due to 4 previous errors
3850
0 commit comments