rust/tests/ui/issues/issue-21174.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
529 B
Plaintext
Raw Normal View History

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) };
| ^^^^^^^^^^^^^^^^^^^
|
= 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`.