@@ -29,6 +29,15 @@ LL | const BAR: (&Path, [u8], usize) = ("hello", [], 42);
29
29
= help: the trait `Sized` is not implemented for `[u8]`
30
30
= note: only the last element of a tuple may have a dynamically sized type
31
31
32
+ error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
33
+ --> $DIR/issue-84108.rs:15:13
34
+ |
35
+ LL | static BAZ: ([u8], usize) = ([], 0);
36
+ | ^^^^^^^^^^^^^ doesn't have a size known at compile-time
37
+ |
38
+ = help: the trait `Sized` is not implemented for `[u8]`
39
+ = note: only the last element of a tuple may have a dynamically sized type
40
+
32
41
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
33
42
--> $DIR/issue-84108.rs:9:12
34
43
|
@@ -48,15 +57,6 @@ LL | const BAR: (&Path, [u8], usize) = ("hello", [], 42);
48
57
= note: expected slice `[u8]`
49
58
found array `[_; 0]`
50
59
51
- error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
52
- --> $DIR/issue-84108.rs:15:13
53
- |
54
- LL | static BAZ: ([u8], usize) = ([], 0);
55
- | ^^^^^^^^^^^^^ doesn't have a size known at compile-time
56
- |
57
- = help: the trait `Sized` is not implemented for `[u8]`
58
- = note: only the last element of a tuple may have a dynamically sized type
59
-
60
60
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
61
61
--> $DIR/issue-84108.rs:15:13
62
62
|
0 commit comments