Rollup merge of #27988 - nagisa:diags-e0139, r=brson

Fixes #27946
This commit is contained in:
Steve Klabnik
2015-08-25 09:43:07 -04:00

View File

@@ -836,9 +836,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`
``` ```
"##, "##,