11error[E0080]: evaluation of constant value failed
2- --> $DIR/uninhabited.rs:41 :9
2+ --> $DIR/uninhabited.rs:46 :9
33 |
44LL | 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
66 |
77 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
88
99error[E0080]: evaluation of constant value failed
10- --> $DIR/uninhabited.rs:63 :9
10+ --> $DIR/uninhabited.rs:68 :9
1111 |
1212LL | 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
1414 |
1515 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
1616
1717error[E0080]: evaluation of constant value failed
18- --> $DIR/uninhabited.rs:87 :9
18+ --> $DIR/uninhabited.rs:92 :9
1919 |
2020LL | 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
2222 |
2323 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
2424
2525error[E0277]: `()` cannot be safely transmuted into `void::Void`
26- --> $DIR/uninhabited.rs:29 :41
26+ --> $DIR/uninhabited.rs:34 :41
2727 |
2828LL | assert::is_maybe_transmutable::<(), Void>();
2929 | ^^^^ `void::Void` is uninhabited
@@ -45,7 +45,7 @@ LL | | }>
4545 | |__________^ required by this bound in `is_maybe_transmutable`
4646
4747error[E0277]: `()` cannot be safely transmuted into `yawning_void_struct::Void`
48- --> $DIR/uninhabited.rs:49 :41
48+ --> $DIR/uninhabited.rs:54 :41
4949 |
5050LL | assert::is_maybe_transmutable::<(), Void>();
5151 | ^^^^ `yawning_void_struct::Void` is uninhabited
@@ -67,7 +67,7 @@ LL | | }>
6767 | |__________^ required by this bound in `is_maybe_transmutable`
6868
6969error[E0277]: `()` cannot be safely transmuted into `yawning_void_enum::Void`
70- --> $DIR/uninhabited.rs:71 :41
70+ --> $DIR/uninhabited.rs:76 :41
7171 |
7272LL | assert::is_maybe_transmutable::<(), Void>();
7373 | ^^^^ `yawning_void_enum::Void` is uninhabited
@@ -89,7 +89,7 @@ LL | | }>
8989 | |__________^ required by this bound in `is_maybe_transmutable`
9090
9191error[E0277]: `u128` cannot be safely transmuted into `DistantVoid`
92- --> $DIR/uninhabited.rs:92 :43
92+ --> $DIR/uninhabited.rs:97 :43
9393 |
9494LL | assert::is_maybe_transmutable::<u128, DistantVoid>();
9595 | ^^^^^^^^^^^ at least one value of `u128` isn't a bit-valid value of `DistantVoid`
@@ -110,7 +110,22 @@ LL | | }
110110LL | | }>
111111 | |__________^ required by this bound in `is_maybe_transmutable`
112112
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
114129
115130Some errors have detailed explanations: E0080, E0277.
116131For more information about an error, try `rustc --explain E0080`.
0 commit comments