2018-12-21 14:15:47 +00:00
|
|
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-21174.rs:7:30
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | let new: T::B = unsafe { std::mem::transmute(value) };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-09-11 12:37:55 +00:00
|
|
|
= note: source type: `<T as Trait<'_>>::A` (this type does not have a fixed size)
|
|
|
|
= note: target type: `<T as Trait<'_>>::B` (this type does not have a fixed size)
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0512`.
|