Fix E0139 code

Fixes #27946
This commit is contained in:
Simonas Kazlauskas 2015-08-25 01:44:18 +03:00
parent 2b45a0d908
commit 067ad9928f

View file

@ -831,9 +831,7 @@ is a size mismatch in one of the impls.
It is also possible to manually transmute: It is also possible to manually transmute:
``` ```
let result: SomeType = mem::uninitialized(); ptr::read(&v as *const _ as *const SomeType) // `v` transmuted to `SomeType`
unsafe { copy_nonoverlapping(&v, &result) };
result // `v` transmuted to type `SomeType`
``` ```
"##, "##,