Debian Codegraph @

third_party/rust/zerocopy/tests/ui-nightly/transmute-mut-src-unsized.stderr

raw
1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
3 |
4 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 | |
7 | doesn't have a size known at compile-time
8 | required by a bound introduced by this call
9 |
10 = help: the trait `Sized` is not implemented for `[u8]`
11 note: required by a bound in `AssertSrcIsFromBytes`
12 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
13 |
14 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
16 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
17
18 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
19 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
20 |
21 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
23 |
24 = help: the trait `Sized` is not implemented for `[u8]`
25 note: required by a bound in `AssertSrcIsFromBytes`
26 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
27 |
28 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
30 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
31
32 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
33 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
34 |
35 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 | |
38 | doesn't have a size known at compile-time
39 | required by a bound introduced by this call
40 |
41 = help: the trait `Sized` is not implemented for `[u8]`
42 note: required by a bound in `AssertSrcIsAsBytes`
43 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
44 |
45 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes`
47 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
48
49 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
50 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
51 |
52 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
54 |
55 = help: the trait `Sized` is not implemented for `[u8]`
56 note: required by a bound in `AssertSrcIsAsBytes`
57 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
58 |
59 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes`
61 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
62
63 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
64 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
65 |
66 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
68 |
69 = help: the trait `Sized` is not implemented for `[u8]`
70 = note: all local variables must have a statically known size
71 = help: unsized locals are gated as an unstable feature
72 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
73
74 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
75 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
76 |
77 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
78 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
79 |
80 = help: the trait `Sized` is not implemented for `[u8]`
81 note: required by a bound in `AlignOf::<T>::into_t`
82 --> src/macro_util.rs
83 |
84 | impl<T> AlignOf<T> {
85 | ^ required by this bound in `AlignOf::<T>::into_t`
86 | #[inline(never)] // Make `missing_inline_in_public_items` happy.
87 | pub fn into_t(self) -> T {
88 | ------ required by a bound in this associated function
89 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
90
91 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
92 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
93 |
94 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
96 |
97 = help: the trait `Sized` is not implemented for `[u8]`
98 = note: the left-hand-side of an assignment must have a statically known size
99 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
100
101 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
102 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
103 |
104 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
105 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
106 |
107 = help: the trait `Sized` is not implemented for `[u8]`
108 note: required by a bound in `AlignOf`
109 --> src/macro_util.rs
110 |
111 | pub struct AlignOf<T> {
112 | ^ required by this bound in `AlignOf`
113 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
114
115 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
116 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
117 |
118 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
120 |
121 = help: the trait `Sized` is not implemented for `[u8]`
122 note: required by a bound in `MaxAlignsOf`
123 --> src/macro_util.rs
124 |
125 | pub union MaxAlignsOf<T, U> {
126 | ^ required by this bound in `MaxAlignsOf`
127 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
128
129 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
130 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
131 |
132 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
133 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
134 |
135 = help: the trait `Sized` is not implemented for `[u8]`
136 note: required by a bound in `AlignOf`
137 --> src/macro_util.rs
138 |
139 | pub struct AlignOf<T> {
140 | ^ required by this bound in `AlignOf`
141 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
142
143 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
144 --> tests/ui-nightly/transmute-mut-src-unsized.rs:16:35
145 |
146 16 | const SRC_UNSIZED: &mut [u8; 1] = transmute_mut!(&mut [0u8][..]);
147 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
148 | |
149 | doesn't have a size known at compile-time
150 | required by a bound introduced by this call
151 |
152 = help: the trait `Sized` is not implemented for `[u8]`
153 note: required by a bound in `transmute_mut`
154 --> src/macro_util.rs
155 |
156 | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
157 | ^^^ required by this bound in `transmute_mut`
158 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)