1 error[E0277]: `[String; 0]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
2 --> $DIR/should_require_well_defined_layout.rs:26:52
4 LL | assert::is_maybe_transmutable::<repr_rust, ()>();
5 | ^^ `[String; 0]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
7 = help: the trait `BikeshedIntrinsicFrom<[String; 0], assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `()`
8 note: required by a bound in `is_maybe_transmutable`
9 --> $DIR/should_require_well_defined_layout.rs:13:14
11 LL | pub fn is_maybe_transmutable<Src, Dst>()
12 | --------------------- required by a bound in this
14 LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
16 LL | | Assume::ALIGNMENT
17 LL | | .and(Assume::LIFETIMES)
18 LL | | .and(Assume::SAFETY)
19 LL | | .and(Assume::VALIDITY)
21 | |__________^ required by this bound in `is_maybe_transmutable`
23 error[E0277]: `u128` cannot be safely transmuted into `[String; 0]` in the defining scope of `assert::Context`.
24 --> $DIR/should_require_well_defined_layout.rs:27:47
26 LL | assert::is_maybe_transmutable::<u128, repr_rust>();
27 | ^^^^^^^^^ `u128` cannot be safely transmuted into `[String; 0]` in the defining scope of `assert::Context`.
29 = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `[String; 0]`
30 note: required by a bound in `is_maybe_transmutable`
31 --> $DIR/should_require_well_defined_layout.rs:13:14
33 LL | pub fn is_maybe_transmutable<Src, Dst>()
34 | --------------------- required by a bound in this
36 LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
38 LL | | Assume::ALIGNMENT
39 LL | | .and(Assume::LIFETIMES)
40 LL | | .and(Assume::SAFETY)
41 LL | | .and(Assume::VALIDITY)
43 | |__________^ required by this bound in `is_maybe_transmutable`
45 error[E0277]: `[String; 1]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
46 --> $DIR/should_require_well_defined_layout.rs:32:52
48 LL | assert::is_maybe_transmutable::<repr_rust, ()>();
49 | ^^ `[String; 1]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
51 = help: the trait `BikeshedIntrinsicFrom<[String; 1], assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `()`
52 note: required by a bound in `is_maybe_transmutable`
53 --> $DIR/should_require_well_defined_layout.rs:13:14
55 LL | pub fn is_maybe_transmutable<Src, Dst>()
56 | --------------------- required by a bound in this
58 LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
60 LL | | Assume::ALIGNMENT
61 LL | | .and(Assume::LIFETIMES)
62 LL | | .and(Assume::SAFETY)
63 LL | | .and(Assume::VALIDITY)
65 | |__________^ required by this bound in `is_maybe_transmutable`
67 error[E0277]: `u128` cannot be safely transmuted into `[String; 1]` in the defining scope of `assert::Context`.
68 --> $DIR/should_require_well_defined_layout.rs:33:47
70 LL | assert::is_maybe_transmutable::<u128, repr_rust>();
71 | ^^^^^^^^^ `u128` cannot be safely transmuted into `[String; 1]` in the defining scope of `assert::Context`.
73 = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `[String; 1]`
74 note: required by a bound in `is_maybe_transmutable`
75 --> $DIR/should_require_well_defined_layout.rs:13:14
77 LL | pub fn is_maybe_transmutable<Src, Dst>()
78 | --------------------- required by a bound in this
80 LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
82 LL | | Assume::ALIGNMENT
83 LL | | .and(Assume::LIFETIMES)
84 LL | | .and(Assume::SAFETY)
85 LL | | .and(Assume::VALIDITY)
87 | |__________^ required by this bound in `is_maybe_transmutable`
89 error[E0277]: `[String; 2]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
90 --> $DIR/should_require_well_defined_layout.rs:38:52
92 LL | assert::is_maybe_transmutable::<repr_rust, ()>();
93 | ^^ `[String; 2]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
95 = help: the trait `BikeshedIntrinsicFrom<[String; 2], assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `()`
96 note: required by a bound in `is_maybe_transmutable`
97 --> $DIR/should_require_well_defined_layout.rs:13:14
99 LL | pub fn is_maybe_transmutable<Src, Dst>()
100 | --------------------- required by a bound in this
102 LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
104 LL | | Assume::ALIGNMENT
105 LL | | .and(Assume::LIFETIMES)
106 LL | | .and(Assume::SAFETY)
107 LL | | .and(Assume::VALIDITY)
109 | |__________^ required by this bound in `is_maybe_transmutable`
111 error[E0277]: `u128` cannot be safely transmuted into `[String; 2]` in the defining scope of `assert::Context`.
112 --> $DIR/should_require_well_defined_layout.rs:39:47
114 LL | assert::is_maybe_transmutable::<u128, repr_rust>();
115 | ^^^^^^^^^ `u128` cannot be safely transmuted into `[String; 2]` in the defining scope of `assert::Context`.
117 = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `[String; 2]`
118 note: required by a bound in `is_maybe_transmutable`
119 --> $DIR/should_require_well_defined_layout.rs:13:14
121 LL | pub fn is_maybe_transmutable<Src, Dst>()
122 | --------------------- required by a bound in this
124 LL | Dst: BikeshedIntrinsicFrom<Src, Context, {
126 LL | | Assume::ALIGNMENT
127 LL | | .and(Assume::LIFETIMES)
128 LL | | .and(Assume::SAFETY)
129 LL | | .and(Assume::VALIDITY)
131 | |__________^ required by this bound in `is_maybe_transmutable`
133 error: aborting due to 6 previous errors
135 For more information about this error, try `rustc --explain E0277`.