about summary refs log tree commit diff
path: root/tests/ui/parser/removed-syntax/removed-syntax-fixed-vec.stderr
blob: 8d7938a1a4699b941ecba7626a8f242dbffa1dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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