mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 19:28:29 +00:00
24 lines
692 B
Plaintext
24 lines
692 B
Plaintext
error: expected `;` or `]`, found `*`
|
|
--> $DIR/removed-syntax-fixed-vec.rs:1:17
|
|
|
|
|
LL | type v = [isize * 3];
|
|
| ^ expected `;` or `]`
|
|
|
|
|
= note: you might have meant to write a slice or array type
|
|
help: you might have meant to use `;` as the separator
|
|
|
|
|
LL - type v = [isize * 3];
|
|
LL + type v = [isize ; 3];
|
|
|
|
|
|
|
warning: type `v` should have an upper camel case name
|
|
--> $DIR/removed-syntax-fixed-vec.rs:1:6
|
|
|
|
|
LL | type v = [isize * 3];
|
|
| ^ help: convert the identifier to upper camel case (notice the capitalization): `V`
|
|
|
|
|
= note: `#[warn(non_camel_case_types)]` on by default
|
|
|
|
error: aborting due to 1 previous error; 1 warning emitted
|
|
|