Skip to content

Commit

Permalink
Fix E0139 code
Browse files Browse the repository at this point in the history
Fixes #27946
  • Loading branch information
nagisa committed Aug 24, 2015
1 parent 2b45a0d commit 067ad99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,9 +831,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`
```
"##,

Expand Down

0 comments on commit 067ad99

Please sign in to comment.