blob: f2563ce0dddc1ac59398364fd1ca10d2eddf8bfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
error: must be an array of bytes like `[u8; N]`
--> $DIR/not-slice.rs:14:1
|
LL | const A: u8 = 0; //~ ERROR: must be an array of bytes
| ^^^^^^^^^^^^^^^^
error: must be an array of bytes like `[u8; N]`
--> $DIR/not-slice.rs:17:1
|
LL | const B: &[u8] = &[0]; //~ ERROR: must be an array of bytes
| ^^^^^^^^^^^^^^^^^^^^^^
error: must be an array of bytes like `[u8; N]`
--> $DIR/not-slice.rs:20:1
|
LL | const C: &[u8; 1] = &[0]; //~ ERROR: must be an array of bytes
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors
|