Debian Codegraph @

third_party/rust/zerocopy/tests/ui-msrv/transmute-mut-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-mut-dst-unsized.rs:17:32
3 |
4 17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [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 `AssertDstIsFromBytes`
9 --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
10 |
11 17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsFromBytes`
13 = note: this error originates in the macro `transmute_mut` (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-mut-dst-unsized.rs:17:32
17 |
18 17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [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: required by a bound in `AssertDstIsAsBytes`
23 --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
24 |
25 17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsAsBytes`
27 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
30 --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
31 |
32 17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
34 |
35 = help: the trait `Sized` is not implemented for `[u8]`
36 = note: all local variables must have a statically known size
37 = help: unsized locals are gated as an unstable feature
38 = note: this error originates in the macro `transmute_mut` (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-mut-dst-unsized.rs:17:32
42 |
43 17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [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 `MaxAlignsOf`
48 --> src/macro_util.rs
49 |
50 | pub union MaxAlignsOf<T, U> {
51 | ^ required by this bound in `MaxAlignsOf`
52 = note: this error originates in the macro `$crate::assert_align_gt_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-mut-dst-unsized.rs:17:32
56 |
57 17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [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 `transmute`
62 --> $RUST/core/src/intrinsics.rs
63 |
64 | pub fn transmute<T, U>(e: T) -> U;
65 | ^ required by this bound in `transmute`
66 = note: this error originates in the macro `$crate::assert_size_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-mut-dst-unsized.rs:17:32
70 |
71 17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [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::<T, U>::new`
76 --> src/macro_util.rs
77 |
78 | impl<T, U> MaxAlignsOf<T, U> {
79 | ^ required by this bound in `MaxAlignsOf::<T, U>::new`
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-mut-dst-unsized.rs:17:32
84 |
85 17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [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 `MaxAlignsOf`
90 --> src/macro_util.rs
91 |
92 | pub union MaxAlignsOf<T, U> {
93 | ^ required by this bound in `MaxAlignsOf`
94 = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
95
96 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
97 --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
98 |
99 17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
101 |
102 = help: the trait `Sized` is not implemented for `[u8]`
103 note: required by a bound in `transmute_mut`
104 --> src/macro_util.rs
105 |
106 | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
107 | ^^^ required by this bound in `transmute_mut`
108 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)