2025-01-02 18:49:43 +00:00
|
|
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
|
2022-08-16 00:16:14 +09:00
|
|
|
--> $DIR/suggest-array-length.rs:5:22
|
|
|
|
|
|
|
|
|
|
|
LL | const Foo: [i32; _] = [1, 2, 3];
|
2025-01-02 22:19:45 +00:00
|
|
|
| ^ not allowed in type signatures
|
|
|
|
|
|
|
|
|
|
|
help: replace this with a fully-specified type
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - const Foo: [i32; _] = [1, 2, 3];
|
|
|
|
|
LL + const Foo: [i32; 3] = [1, 2, 3];
|
|
|
|
|
|
|
2022-08-16 00:16:14 +09:00
|
|
|
|
2025-01-02 18:49:43 +00:00
|
|
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
|
|
|
|
|
--> $DIR/suggest-array-length.rs:7:26
|
2022-09-07 02:37:18 +09:00
|
|
|
|
|
|
|
|
|
LL | const REF_FOO: &[u8; _] = &[1];
|
2025-01-02 22:19:45 +00:00
|
|
|
| ^ not allowed in type signatures
|
|
|
|
|
|
|
|
|
|
|
help: replace this with a fully-specified type
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - const REF_FOO: &[u8; _] = &[1];
|
|
|
|
|
LL + const REF_FOO: &[u8; 1] = &[1];
|
|
|
|
|
|
|
2022-09-07 02:37:18 +09:00
|
|
|
|
2025-01-02 18:49:43 +00:00
|
|
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for static variables
|
|
|
|
|
--> $DIR/suggest-array-length.rs:9:26
|
|
|
|
|
|
|
|
|
|
|
LL | static Statik: [i32; _] = [1, 2, 3];
|
2025-01-02 22:19:45 +00:00
|
|
|
| ^ not allowed in type signatures
|
|
|
|
|
|
|
|
|
|
|
help: replace this with a fully-specified type
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - static Statik: [i32; _] = [1, 2, 3];
|
|
|
|
|
LL + static Statik: [i32; 3] = [1, 2, 3];
|
|
|
|
|
|
|
2022-08-16 00:16:14 +09:00
|
|
|
|
2025-01-02 18:49:43 +00:00
|
|
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for static variables
|
|
|
|
|
--> $DIR/suggest-array-length.rs:11:30
|
|
|
|
|
|
|
|
|
|
|
LL | static REF_STATIK: &[u8; _] = &[1];
|
2025-01-02 22:19:45 +00:00
|
|
|
| ^ not allowed in type signatures
|
|
|
|
|
|
|
|
|
|
|
help: replace this with a fully-specified type
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - static REF_STATIK: &[u8; _] = &[1];
|
|
|
|
|
LL + static REF_STATIK: &[u8; 1] = &[1];
|
|
|
|
|
|
|
2022-09-07 02:37:18 +09:00
|
|
|
|
2025-06-11 15:30:15 +01:00
|
|
|
error: aborting due to 4 previous errors
|
2022-08-16 00:16:14 +09:00
|
|
|
|
2025-06-11 15:30:15 +01:00
|
|
|
For more information about this error, try `rustc --explain E0121`.
|