1
1
error[E0080]: evaluation of constant value failed
2
- --> $DIR/uninhabited.rs:41 :9
2
+ --> $DIR/uninhabited.rs:46 :9
3
3
|
4
4
LL | assert!(false);
5
- | ^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: false', $DIR/uninhabited.rs:41 :9
5
+ | ^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: false', $DIR/uninhabited.rs:46 :9
6
6
|
7
7
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
8
8
9
9
error[E0080]: evaluation of constant value failed
10
- --> $DIR/uninhabited.rs:63 :9
10
+ --> $DIR/uninhabited.rs:68 :9
11
11
|
12
12
LL | assert!(false);
13
- | ^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: false', $DIR/uninhabited.rs:63 :9
13
+ | ^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: false', $DIR/uninhabited.rs:68 :9
14
14
|
15
15
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
16
16
17
17
error[E0080]: evaluation of constant value failed
18
- --> $DIR/uninhabited.rs:87 :9
18
+ --> $DIR/uninhabited.rs:92 :9
19
19
|
20
20
LL | assert!(false);
21
- | ^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: false', $DIR/uninhabited.rs:87 :9
21
+ | ^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: false', $DIR/uninhabited.rs:92 :9
22
22
|
23
23
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
24
24
25
25
error[E0277]: `()` cannot be safely transmuted into `void::Void`
26
- --> $DIR/uninhabited.rs:29 :41
26
+ --> $DIR/uninhabited.rs:34 :41
27
27
|
28
28
LL | assert::is_maybe_transmutable::<(), Void>();
29
29
| ^^^^ `void::Void` is uninhabited
@@ -45,7 +45,7 @@ LL | | }>
45
45
| |__________^ required by this bound in `is_maybe_transmutable`
46
46
47
47
error[E0277]: `()` cannot be safely transmuted into `yawning_void_struct::Void`
48
- --> $DIR/uninhabited.rs:49 :41
48
+ --> $DIR/uninhabited.rs:54 :41
49
49
|
50
50
LL | assert::is_maybe_transmutable::<(), Void>();
51
51
| ^^^^ `yawning_void_struct::Void` is uninhabited
@@ -67,7 +67,7 @@ LL | | }>
67
67
| |__________^ required by this bound in `is_maybe_transmutable`
68
68
69
69
error[E0277]: `()` cannot be safely transmuted into `yawning_void_enum::Void`
70
- --> $DIR/uninhabited.rs:71 :41
70
+ --> $DIR/uninhabited.rs:76 :41
71
71
|
72
72
LL | assert::is_maybe_transmutable::<(), Void>();
73
73
| ^^^^ `yawning_void_enum::Void` is uninhabited
@@ -89,7 +89,7 @@ LL | | }>
89
89
| |__________^ required by this bound in `is_maybe_transmutable`
90
90
91
91
error[E0277]: `u128` cannot be safely transmuted into `DistantVoid`
92
- --> $DIR/uninhabited.rs:92 :43
92
+ --> $DIR/uninhabited.rs:97 :43
93
93
|
94
94
LL | assert::is_maybe_transmutable::<u128, DistantVoid>();
95
95
| ^^^^^^^^^^^ at least one value of `u128` isn't a bit-valid value of `DistantVoid`
@@ -110,7 +110,22 @@ LL | | }
110
110
LL | | }>
111
111
| |__________^ required by this bound in `is_maybe_transmutable`
112
112
113
- error: aborting due to 7 previous errors
113
+ error[E0277]: `Src` cannot be safely transmuted into `issue_126267::Error`
114
+ --> $DIR/uninhabited.rs:113:36
115
+ |
116
+ LL | assert::is_transmutable::<Src, Dst>();
117
+ | ^^^ `issue_126267::Error` may carry safety invariants
118
+ |
119
+ note: required by a bound in `is_transmutable`
120
+ --> $DIR/uninhabited.rs:22:18
121
+ |
122
+ LL | pub fn is_transmutable<Src, Dst>()
123
+ | --------------- required by a bound in this function
124
+ LL | where
125
+ LL | Dst: TransmuteFrom<Src>, // safety is NOT assumed, but proven
126
+ | ^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`
127
+
128
+ error: aborting due to 8 previous errors
114
129
115
130
Some errors have detailed explanations: E0080, E0277.
116
131
For more information about an error, try `rustc --explain E0080`.
0 commit comments