Debian Codegraph @

third_party/rust/zerocopy/tests/ui-msrv/transmute-ref-dst-unsized.stderr

raw
1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2 --> tests/ui-msrv/transmute-ref-dst-unsized.rs:17:28
3 |
4 17 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6 |
7 = help: the trait `Sized` is not implemented for `[u8]`
8 note: required by a bound in `AssertIsFromBytes`
9 --> tests/ui-msrv/transmute-ref-dst-unsized.rs:17:28
10 |
11 17 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertIsFromBytes`
13 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
16 --> tests/ui-msrv/transmute-ref-dst-unsized.rs:17:28
17 |
18 17 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
20 |
21 = help: the trait `Sized` is not implemented for `[u8]`
22 = note: all local variables must have a statically known size
23 = help: unsized locals are gated as an unstable feature
24 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
25
26 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
27 --> tests/ui-msrv/transmute-ref-dst-unsized.rs:17:28
28 |
29 17 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
31 |
32 = help: the trait `Sized` is not implemented for `[u8]`
33 note: required by a bound in `MaxAlignsOf`
34 --> src/macro_util.rs
35 |
36 | pub union MaxAlignsOf<T, U> {
37 | ^ required by this bound in `MaxAlignsOf`
38 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
39
40 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
41 --> tests/ui-msrv/transmute-ref-dst-unsized.rs:17:28
42 |
43 17 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
45 |
46 = help: the trait `Sized` is not implemented for `[u8]`
47 note: required by a bound in `transmute`
48 --> $RUST/core/src/intrinsics.rs
49 |
50 | pub fn transmute<T, U>(e: T) -> U;
51 | ^ required by this bound in `transmute`
52 = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
53
54 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
55 --> tests/ui-msrv/transmute-ref-dst-unsized.rs:17:28
56 |
57 17 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
58 | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
59 |
60 = help: the trait `Sized` is not implemented for `[u8]`
61 note: required by a bound in `MaxAlignsOf::<T, U>::new`
62 --> src/macro_util.rs
63 |
64 | impl<T, U> MaxAlignsOf<T, U> {
65 | ^ required by this bound in `MaxAlignsOf::<T, U>::new`
66 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
67
68 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
69 --> tests/ui-msrv/transmute-ref-dst-unsized.rs:17:28
70 |
71 17 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
72 | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
73 |
74 = help: the trait `Sized` is not implemented for `[u8]`
75 note: required by a bound in `MaxAlignsOf`
76 --> src/macro_util.rs
77 |
78 | pub union MaxAlignsOf<T, U> {
79 | ^ required by this bound in `MaxAlignsOf`
80 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
81
82 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
83 --> tests/ui-msrv/transmute-ref-dst-unsized.rs:17:28
84 |
85 17 | const DST_UNSIZED: &[u8] = transmute_ref!(&[0u8; 1]);
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
87 |
88 = help: the trait `Sized` is not implemented for `[u8]`
89 note: required by a bound in `transmute_ref`
90 --> src/macro_util.rs
91 |
92 | pub const unsafe fn transmute_ref<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
93 | ^^^ required by this bound in `transmute_ref`
94 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)