@@ -30,57 +30,71 @@ error[E0121]: the placeholder `_` is not allowed within types on item signatures
30
30
--> $DIR/in-signature.rs:22:20
31
31
|
32
32
LL | const ARR_CT: [u8; _] = [0; 3];
33
- | -----^-
34
- | | |
35
- | | not allowed in type signatures
36
- | help: replace with the correct type: `[u8; 3]`
33
+ | ^ not allowed in type signatures
34
+ |
35
+ help: replace this with a fully-specified type
36
+ |
37
+ LL | const ARR_CT: [u8; 3] = [0; 3];
38
+ | ~~~~~~~
37
39
38
40
error[E0121]: the placeholder `_` is not allowed within types on item signatures for static variables
39
41
--> $DIR/in-signature.rs:24:25
40
42
|
41
43
LL | static ARR_STATIC: [u8; _] = [0; 3];
42
- | -----^-
43
- | | |
44
- | | not allowed in type signatures
45
- | help: replace with the correct type: `[u8; 3]`
44
+ | ^ not allowed in type signatures
45
+ |
46
+ help: replace this with a fully-specified type
47
+ |
48
+ LL | static ARR_STATIC: [u8; 3] = [0; 3];
49
+ | ~~~~~~~
46
50
47
51
error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
48
52
--> $DIR/in-signature.rs:26:23
49
53
|
50
54
LL | const TY_CT: Bar<i32, _> = Bar::<i32, 3>(0);
51
- | ---------^-
52
- | | |
53
- | | not allowed in type signatures
54
- | help: replace with the correct type: `Bar<i32, 3>`
55
+ | ^ not allowed in type signatures
56
+ |
57
+ help: replace this with a fully-specified type
58
+ |
59
+ LL | const TY_CT: Bar<i32, 3> = Bar::<i32, 3>(0);
60
+ | ~~~~~~~~~~~
55
61
56
62
error[E0121]: the placeholder `_` is not allowed within types on item signatures for static variables
57
63
--> $DIR/in-signature.rs:28:28
58
64
|
59
65
LL | static TY_STATIC: Bar<i32, _> = Bar::<i32, 3>(0);
60
- | ---------^-
61
- | | |
62
- | | not allowed in type signatures
63
- | help: replace with the correct type: `Bar<i32, 3>`
66
+ | ^ not allowed in type signatures
67
+ |
68
+ help: replace this with a fully-specified type
69
+ |
70
+ LL | static TY_STATIC: Bar<i32, 3> = Bar::<i32, 3>(0);
71
+ | ~~~~~~~~~~~
64
72
65
73
error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
66
74
--> $DIR/in-signature.rs:30:24
67
75
|
68
76
LL | const TY_CT_MIXED: Bar<_, _> = Bar::<i32, 3>(0);
69
- | ----^--^-
70
- | | | |
71
- | | | not allowed in type signatures
72
- | | not allowed in type signatures
73
- | help: replace with the correct type: `Bar<i32, 3>`
77
+ | ^ ^ not allowed in type signatures
78
+ | |
79
+ | not allowed in type signatures
80
+ |
81
+ help: replace this with a fully-specified type
82
+ |
83
+ LL | const TY_CT_MIXED: Bar<i32, 3> = Bar::<i32, 3>(0);
84
+ | ~~~~~~~~~~~
74
85
75
86
error[E0121]: the placeholder `_` is not allowed within types on item signatures for static variables
76
87
--> $DIR/in-signature.rs:32:29
77
88
|
78
89
LL | static TY_STATIC_MIXED: Bar<_, _> = Bar::<i32, 3>(0);
79
- | ----^--^-
80
- | | | |
81
- | | | not allowed in type signatures
82
- | | not allowed in type signatures
83
- | help: replace with the correct type: `Bar<i32, 3>`
90
+ | ^ ^ not allowed in type signatures
91
+ | |
92
+ | not allowed in type signatures
93
+ |
94
+ help: replace this with a fully-specified type
95
+ |
96
+ LL | static TY_STATIC_MIXED: Bar<i32, 3> = Bar::<i32, 3>(0);
97
+ | ~~~~~~~~~~~
84
98
85
99
error[E0121]: the placeholder `_` is not allowed within types on item signatures for associated types
86
100
--> $DIR/in-signature.rs:51:23
0 commit comments