diff --git a/src/transmute.rs b/src/transmute.rs index 8430a8a..1b36c90 100644 --- a/src/transmute.rs +++ b/src/transmute.rs @@ -19,6 +19,9 @@ /// Then, we overwrite the dummy variable with a `DummyEnum::A(Some(<...>))` with the object we want to transmute. /// Finally, we take the `Box`, interpreted as a `Box`, out of the dangling reference and we've transmuted our data! /// +/// # Safety +/// lol +/// pub fn transmute(obj: A) -> B { use std::hint::black_box;