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
commit c4847a11da

View file

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