@@ -29,6 +29,15 @@ LL | const BAR: (&Path, [u8], usize) = ("hello", [], 42);
2929 = help: the trait `Sized` is not implemented for `[u8]`
3030 = note: only the last element of a tuple may have a dynamically sized type
3131
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+
3241error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
3342 --> $DIR/issue-84108.rs:9:12
3443 |
@@ -48,15 +57,6 @@ LL | const BAR: (&Path, [u8], usize) = ("hello", [], 42);
4857 = note: expected slice `[u8]`
4958 found array `[_; 0]`
5059
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-
6060error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
6161 --> $DIR/issue-84108.rs:15:13
6262 |
0 commit comments