]> git.proxmox.com Git - rustc.git/blame - src/test/ui/transmutability/structs/repr/should_require_well_defined_layout.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / transmutability / structs / repr / should_require_well_defined_layout.stderr
CommitLineData
064997fb 1error[E0277]: `should_reject_repr_rust::unit::repr_rust` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
f2b60f7d 2 --> $DIR/should_require_well_defined_layout.rs:28:52
064997fb
FG
3 |
4LL | assert::is_maybe_transmutable::<repr_rust, ()>();
5 | ^^ `should_reject_repr_rust::unit::repr_rust` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
6 |
f2b60f7d 7 = help: the trait `BikeshedIntrinsicFrom<should_reject_repr_rust::unit::repr_rust, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `()`
064997fb
FG
8note: required by a bound in `is_maybe_transmutable`
9 --> $DIR/should_require_well_defined_layout.rs:13:14
10 |
f2b60f7d
FG
11LL | pub fn is_maybe_transmutable<Src, Dst>()
12 | --------------------- required by a bound in this
13LL | where
14LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
15 | ______________^
16LL | | Assume {
17LL | | alignment: true,
18LL | | lifetimes: true,
19... |
20LL | | }
21LL | | }>
22 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
23
24error[E0277]: `u128` cannot be safely transmuted into `should_reject_repr_rust::unit::repr_rust` in the defining scope of `assert::Context`.
f2b60f7d 25 --> $DIR/should_require_well_defined_layout.rs:29:47
064997fb
FG
26 |
27LL | assert::is_maybe_transmutable::<u128, repr_rust>();
28 | ^^^^^^^^^ `u128` cannot be safely transmuted into `should_reject_repr_rust::unit::repr_rust` in the defining scope of `assert::Context`.
29 |
f2b60f7d 30 = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `should_reject_repr_rust::unit::repr_rust`
064997fb
FG
31note: required by a bound in `is_maybe_transmutable`
32 --> $DIR/should_require_well_defined_layout.rs:13:14
33 |
f2b60f7d
FG
34LL | pub fn is_maybe_transmutable<Src, Dst>()
35 | --------------------- required by a bound in this
36LL | where
37LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
38 | ______________^
39LL | | Assume {
40LL | | alignment: true,
41LL | | lifetimes: true,
42... |
43LL | | }
44LL | | }>
45 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
46
47error[E0277]: `should_reject_repr_rust::tuple::repr_rust` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
f2b60f7d 48 --> $DIR/should_require_well_defined_layout.rs:34:52
064997fb
FG
49 |
50LL | assert::is_maybe_transmutable::<repr_rust, ()>();
51 | ^^ `should_reject_repr_rust::tuple::repr_rust` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
52 |
f2b60f7d 53 = help: the trait `BikeshedIntrinsicFrom<should_reject_repr_rust::tuple::repr_rust, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `()`
064997fb
FG
54note: required by a bound in `is_maybe_transmutable`
55 --> $DIR/should_require_well_defined_layout.rs:13:14
56 |
f2b60f7d
FG
57LL | pub fn is_maybe_transmutable<Src, Dst>()
58 | --------------------- required by a bound in this
59LL | where
60LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
61 | ______________^
62LL | | Assume {
63LL | | alignment: true,
64LL | | lifetimes: true,
65... |
66LL | | }
67LL | | }>
68 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
69
70error[E0277]: `u128` cannot be safely transmuted into `should_reject_repr_rust::tuple::repr_rust` in the defining scope of `assert::Context`.
f2b60f7d 71 --> $DIR/should_require_well_defined_layout.rs:35:47
064997fb
FG
72 |
73LL | assert::is_maybe_transmutable::<u128, repr_rust>();
74 | ^^^^^^^^^ `u128` cannot be safely transmuted into `should_reject_repr_rust::tuple::repr_rust` in the defining scope of `assert::Context`.
75 |
f2b60f7d 76 = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `should_reject_repr_rust::tuple::repr_rust`
064997fb
FG
77note: required by a bound in `is_maybe_transmutable`
78 --> $DIR/should_require_well_defined_layout.rs:13:14
79 |
f2b60f7d
FG
80LL | pub fn is_maybe_transmutable<Src, Dst>()
81 | --------------------- required by a bound in this
82LL | where
83LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
84 | ______________^
85LL | | Assume {
86LL | | alignment: true,
87LL | | lifetimes: true,
88... |
89LL | | }
90LL | | }>
91 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
92
93error[E0277]: `should_reject_repr_rust::braces::repr_rust` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
f2b60f7d 94 --> $DIR/should_require_well_defined_layout.rs:40:52
064997fb
FG
95 |
96LL | assert::is_maybe_transmutable::<repr_rust, ()>();
97 | ^^ `should_reject_repr_rust::braces::repr_rust` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
98 |
f2b60f7d 99 = help: the trait `BikeshedIntrinsicFrom<should_reject_repr_rust::braces::repr_rust, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `()`
064997fb
FG
100note: required by a bound in `is_maybe_transmutable`
101 --> $DIR/should_require_well_defined_layout.rs:13:14
102 |
f2b60f7d
FG
103LL | pub fn is_maybe_transmutable<Src, Dst>()
104 | --------------------- required by a bound in this
105LL | where
106LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
107 | ______________^
108LL | | Assume {
109LL | | alignment: true,
110LL | | lifetimes: true,
111... |
112LL | | }
113LL | | }>
114 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
115
116error[E0277]: `u128` cannot be safely transmuted into `should_reject_repr_rust::braces::repr_rust` in the defining scope of `assert::Context`.
f2b60f7d 117 --> $DIR/should_require_well_defined_layout.rs:41:47
064997fb
FG
118 |
119LL | assert::is_maybe_transmutable::<u128, repr_rust>();
120 | ^^^^^^^^^ `u128` cannot be safely transmuted into `should_reject_repr_rust::braces::repr_rust` in the defining scope of `assert::Context`.
121 |
f2b60f7d 122 = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `should_reject_repr_rust::braces::repr_rust`
064997fb
FG
123note: required by a bound in `is_maybe_transmutable`
124 --> $DIR/should_require_well_defined_layout.rs:13:14
125 |
f2b60f7d
FG
126LL | pub fn is_maybe_transmutable<Src, Dst>()
127 | --------------------- required by a bound in this
128LL | where
129LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
130 | ______________^
131LL | | Assume {
132LL | | alignment: true,
133LL | | lifetimes: true,
134... |
135LL | | }
136LL | | }>
137 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
138
139error[E0277]: `aligned::repr_rust` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
f2b60f7d 140 --> $DIR/should_require_well_defined_layout.rs:46:52
064997fb
FG
141 |
142LL | assert::is_maybe_transmutable::<repr_rust, ()>();
143 | ^^ `aligned::repr_rust` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
144 |
f2b60f7d 145 = help: the trait `BikeshedIntrinsicFrom<aligned::repr_rust, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `()`
064997fb
FG
146note: required by a bound in `is_maybe_transmutable`
147 --> $DIR/should_require_well_defined_layout.rs:13:14
148 |
f2b60f7d
FG
149LL | pub fn is_maybe_transmutable<Src, Dst>()
150 | --------------------- required by a bound in this
151LL | where
152LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
153 | ______________^
154LL | | Assume {
155LL | | alignment: true,
156LL | | lifetimes: true,
157... |
158LL | | }
159LL | | }>
160 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
161
162error[E0277]: `u128` cannot be safely transmuted into `aligned::repr_rust` in the defining scope of `assert::Context`.
f2b60f7d 163 --> $DIR/should_require_well_defined_layout.rs:47:47
064997fb
FG
164 |
165LL | assert::is_maybe_transmutable::<u128, repr_rust>();
166 | ^^^^^^^^^ `u128` cannot be safely transmuted into `aligned::repr_rust` in the defining scope of `assert::Context`.
167 |
f2b60f7d 168 = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `aligned::repr_rust`
064997fb
FG
169note: required by a bound in `is_maybe_transmutable`
170 --> $DIR/should_require_well_defined_layout.rs:13:14
171 |
f2b60f7d
FG
172LL | pub fn is_maybe_transmutable<Src, Dst>()
173 | --------------------- required by a bound in this
174LL | where
175LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
176 | ______________^
177LL | | Assume {
178LL | | alignment: true,
179LL | | lifetimes: true,
180... |
181LL | | }
182LL | | }>
183 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
184
185error[E0277]: `packed::repr_rust` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
f2b60f7d 186 --> $DIR/should_require_well_defined_layout.rs:52:52
064997fb
FG
187 |
188LL | assert::is_maybe_transmutable::<repr_rust, ()>();
189 | ^^ `packed::repr_rust` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
190 |
f2b60f7d 191 = help: the trait `BikeshedIntrinsicFrom<packed::repr_rust, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `()`
064997fb
FG
192note: required by a bound in `is_maybe_transmutable`
193 --> $DIR/should_require_well_defined_layout.rs:13:14
194 |
f2b60f7d
FG
195LL | pub fn is_maybe_transmutable<Src, Dst>()
196 | --------------------- required by a bound in this
197LL | where
198LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
199 | ______________^
200LL | | Assume {
201LL | | alignment: true,
202LL | | lifetimes: true,
203... |
204LL | | }
205LL | | }>
206 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
207
208error[E0277]: `u128` cannot be safely transmuted into `packed::repr_rust` in the defining scope of `assert::Context`.
f2b60f7d 209 --> $DIR/should_require_well_defined_layout.rs:53:47
064997fb
FG
210 |
211LL | assert::is_maybe_transmutable::<u128, repr_rust>();
212 | ^^^^^^^^^ `u128` cannot be safely transmuted into `packed::repr_rust` in the defining scope of `assert::Context`.
213 |
f2b60f7d 214 = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `packed::repr_rust`
064997fb
FG
215note: required by a bound in `is_maybe_transmutable`
216 --> $DIR/should_require_well_defined_layout.rs:13:14
217 |
f2b60f7d
FG
218LL | pub fn is_maybe_transmutable<Src, Dst>()
219 | --------------------- required by a bound in this
220LL | where
221LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
222 | ______________^
223LL | | Assume {
224LL | | alignment: true,
225LL | | lifetimes: true,
226... |
227LL | | }
228LL | | }>
229 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
230
231error[E0277]: `nested::repr_c` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
f2b60f7d 232 --> $DIR/should_require_well_defined_layout.rs:59:49
064997fb
FG
233 |
234LL | assert::is_maybe_transmutable::<repr_c, ()>();
235 | ^^ `nested::repr_c` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
236 |
f2b60f7d 237 = help: the trait `BikeshedIntrinsicFrom<nested::repr_c, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `()`
064997fb
FG
238note: required by a bound in `is_maybe_transmutable`
239 --> $DIR/should_require_well_defined_layout.rs:13:14
240 |
f2b60f7d
FG
241LL | pub fn is_maybe_transmutable<Src, Dst>()
242 | --------------------- required by a bound in this
243LL | where
244LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
245 | ______________^
246LL | | Assume {
247LL | | alignment: true,
248LL | | lifetimes: true,
249... |
250LL | | }
251LL | | }>
252 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
253
254error[E0277]: `u128` cannot be safely transmuted into `nested::repr_c` in the defining scope of `assert::Context`.
f2b60f7d 255 --> $DIR/should_require_well_defined_layout.rs:60:47
064997fb
FG
256 |
257LL | assert::is_maybe_transmutable::<u128, repr_c>();
258 | ^^^^^^ `u128` cannot be safely transmuted into `nested::repr_c` in the defining scope of `assert::Context`.
259 |
f2b60f7d 260 = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `nested::repr_c`
064997fb
FG
261note: required by a bound in `is_maybe_transmutable`
262 --> $DIR/should_require_well_defined_layout.rs:13:14
263 |
f2b60f7d
FG
264LL | pub fn is_maybe_transmutable<Src, Dst>()
265 | --------------------- required by a bound in this
266LL | where
267LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
268 | ______________^
269LL | | Assume {
270LL | | alignment: true,
271LL | | lifetimes: true,
272... |
273LL | | }
274LL | | }>
275 | |__________^ required by this bound in `is_maybe_transmutable`
064997fb
FG
276
277error: aborting due to 12 previous errors
278
279For more information about this error, try `rustc --explain E0277`.