about summary refs log tree commit diff
path: root/tests/ui/parser/removed-syntax/removed-syntax-fixed-vec.stderr
blob: f584197c98e8dfda5f6d4f1389ae70e5398235df (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)]` (part of `#[warn(nonstandard_style)]`) on by default

error: aborting due to 1 previous error; 1 warning emitted