1
- error[E0277]: the trait bound `(): BikeshedIntrinsicFrom< [String; 0], assert::Context, true, true, true, true>` is not satisfied
1
+ error[E0277]: ` [String; 0]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
2
2
--> $DIR/should_require_well_defined_layout.rs:21:52
3
3
|
4
4
LL | assert::is_maybe_transmutable::<repr_rust, ()>();
5
- | ^^ the trait `BikeshedIntrinsicFrom< [String; 0], assert::Context, true, true, true, true>` is not implemented for `()`
5
+ | ^^ ` [String; 0]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
6
6
|
7
+ = help: the trait `BikeshedIntrinsicFrom<[String; 0], assert::Context, true, true, true, true>` is not implemented for `()`
7
8
note: required by a bound in `is_maybe_transmutable`
8
9
--> $DIR/should_require_well_defined_layout.rs:13:14
9
10
|
@@ -13,12 +14,13 @@ LL | where
13
14
LL | Dst: BikeshedIntrinsicFrom<Src, Context, true, true, true, true>
14
15
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_maybe_transmutable`
15
16
16
- error[E0277]: the trait bound `[String; 0]: BikeshedIntrinsicFrom<u128, assert::Context, true, true, true, true>` is not satisfied
17
+ error[E0277]: `u128` cannot be safely transmuted into `[String; 0]` in the defining scope of `assert::Context`.
17
18
--> $DIR/should_require_well_defined_layout.rs:22:47
18
19
|
19
20
LL | assert::is_maybe_transmutable::<u128, repr_rust>();
20
- | ^^^^^^^^^ the trait `BikeshedIntrinsicFrom< u128, assert::Context, true, true, true, true>` is not implemented for `[String; 0]`
21
+ | ^^^^^^^^^ ` u128` cannot be safely transmuted into `[String; 0]` in the defining scope of `assert::Context`.
21
22
|
23
+ = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, true, true, true, true>` is not implemented for `[String; 0]`
22
24
note: required by a bound in `is_maybe_transmutable`
23
25
--> $DIR/should_require_well_defined_layout.rs:13:14
24
26
|
@@ -28,12 +30,13 @@ LL | where
28
30
LL | Dst: BikeshedIntrinsicFrom<Src, Context, true, true, true, true>
29
31
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_maybe_transmutable`
30
32
31
- error[E0277]: the trait bound `(): BikeshedIntrinsicFrom< [String; 1], assert::Context, true, true, true, true>` is not satisfied
33
+ error[E0277]: ` [String; 1]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
32
34
--> $DIR/should_require_well_defined_layout.rs:27:52
33
35
|
34
36
LL | assert::is_maybe_transmutable::<repr_rust, ()>();
35
- | ^^ the trait `BikeshedIntrinsicFrom< [String; 1], assert::Context, true, true, true, true>` is not implemented for `()`
37
+ | ^^ ` [String; 1]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
36
38
|
39
+ = help: the trait `BikeshedIntrinsicFrom<[String; 1], assert::Context, true, true, true, true>` is not implemented for `()`
37
40
note: required by a bound in `is_maybe_transmutable`
38
41
--> $DIR/should_require_well_defined_layout.rs:13:14
39
42
|
@@ -43,12 +46,13 @@ LL | where
43
46
LL | Dst: BikeshedIntrinsicFrom<Src, Context, true, true, true, true>
44
47
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_maybe_transmutable`
45
48
46
- error[E0277]: the trait bound `[String; 1]: BikeshedIntrinsicFrom<u128, assert::Context, true, true, true, true>` is not satisfied
49
+ error[E0277]: `u128` cannot be safely transmuted into `[String; 1]` in the defining scope of `assert::Context`.
47
50
--> $DIR/should_require_well_defined_layout.rs:28:47
48
51
|
49
52
LL | assert::is_maybe_transmutable::<u128, repr_rust>();
50
- | ^^^^^^^^^ the trait `BikeshedIntrinsicFrom< u128, assert::Context, true, true, true, true>` is not implemented for `[String; 1]`
53
+ | ^^^^^^^^^ ` u128` cannot be safely transmuted into `[String; 1]` in the defining scope of `assert::Context`.
51
54
|
55
+ = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, true, true, true, true>` is not implemented for `[String; 1]`
52
56
note: required by a bound in `is_maybe_transmutable`
53
57
--> $DIR/should_require_well_defined_layout.rs:13:14
54
58
|
@@ -58,12 +62,13 @@ LL | where
58
62
LL | Dst: BikeshedIntrinsicFrom<Src, Context, true, true, true, true>
59
63
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_maybe_transmutable`
60
64
61
- error[E0277]: the trait bound `(): BikeshedIntrinsicFrom< [String; 2], assert::Context, true, true, true, true>` is not satisfied
65
+ error[E0277]: ` [String; 2]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
62
66
--> $DIR/should_require_well_defined_layout.rs:33:52
63
67
|
64
68
LL | assert::is_maybe_transmutable::<repr_rust, ()>();
65
- | ^^ the trait `BikeshedIntrinsicFrom< [String; 2], assert::Context, true, true, true, true>` is not implemented for `()`
69
+ | ^^ ` [String; 2]` cannot be safely transmuted into `()` in the defining scope of `assert::Context`.
66
70
|
71
+ = help: the trait `BikeshedIntrinsicFrom<[String; 2], assert::Context, true, true, true, true>` is not implemented for `()`
67
72
note: required by a bound in `is_maybe_transmutable`
68
73
--> $DIR/should_require_well_defined_layout.rs:13:14
69
74
|
@@ -73,12 +78,13 @@ LL | where
73
78
LL | Dst: BikeshedIntrinsicFrom<Src, Context, true, true, true, true>
74
79
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `is_maybe_transmutable`
75
80
76
- error[E0277]: the trait bound `[String; 2]: BikeshedIntrinsicFrom<u128, assert::Context, true, true, true, true>` is not satisfied
81
+ error[E0277]: `u128` cannot be safely transmuted into `[String; 2]` in the defining scope of `assert::Context`.
77
82
--> $DIR/should_require_well_defined_layout.rs:34:47
78
83
|
79
84
LL | assert::is_maybe_transmutable::<u128, repr_rust>();
80
- | ^^^^^^^^^ the trait `BikeshedIntrinsicFrom< u128, assert::Context, true, true, true, true>` is not implemented for `[String; 2]`
85
+ | ^^^^^^^^^ ` u128` cannot be safely transmuted into `[String; 2]` in the defining scope of `assert::Context`.
81
86
|
87
+ = help: the trait `BikeshedIntrinsicFrom<u128, assert::Context, true, true, true, true>` is not implemented for `[String; 2]`
82
88
note: required by a bound in `is_maybe_transmutable`
83
89
--> $DIR/should_require_well_defined_layout.rs:13:14
84
90
|
0 commit comments