We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 352853c commit bef9355Copy full SHA for bef9355
src/librustc/diagnostics.rs
@@ -858,6 +858,9 @@ It is also possible to manually transmute:
858
```
859
ptr::read(&v as *const _ as *const SomeType) // `v` transmuted to `SomeType`
860
861
+
862
+Note that this does not move `v` (unlike `transmute`), and may need a
863
+call to `mem::forget(v)` in case you want to avoid destructors being called.
864
"##,
865
866
E0152: r##"
0 commit comments