about summary refs log tree commit diff
path: root/tests/ui/array-slice-vec/suggest-array-length.stderr
blob: e498f2ca4f580a847eb820b4c18c2da1a2d221f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
  --> $DIR/suggest-array-length.rs:5:22
   |
LL |     const Foo: [i32; _] = [1, 2, 3];
   |                      ^ not allowed in type signatures
   |
help: replace this with a fully-specified type
   |
LL -     const Foo: [i32; _] = [1, 2, 3];
LL +     const Foo: [i32; 3] = [1, 2, 3];
   |

error[E0121]: the placeholder `_` is not allowed within types on item signatures for constants
  --> $DIR/suggest-array-length.rs:7:26
   |
LL |     const REF_FOO: &[u8; _] = &[1];
   |                          ^ not allowed in type signatures
   |
help: replace this with a fully-specified type
   |
LL -     const REF_FOO: &[u8; _] = &[1];
LL +     const REF_FOO: &[u8; 1] = &[1];
   |

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];
   |                          ^ not allowed in type signatures
   |
help: replace this with a fully-specified type
   |
LL -     static Statik: [i32; _] = [1, 2, 3];
LL +     static Statik: [i32; 3] = [1, 2, 3];
   |

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];
   |                              ^ not allowed in type signatures
   |
help: replace this with a fully-specified type
   |
LL -     static REF_STATIK: &[u8; _] = &[1];
LL +     static REF_STATIK: &[u8; 1] = &[1];
   |

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0121`.