You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudobeans
changed the title
"How to convert pointer to reference in Rust" is incorrect
"How to convert pointer to reference in Rust" example code does not compile
Jun 30, 2024
The error is with this webpage: https://onelinerhub.com/rust/how-to-convert-pointer-to-reference-in-rust
GitHub link: https://github.com/Onelinerhub/onelinerhub/blob/main//rust/how-to-convert-pointer-to-reference-in-rust.md
It contains this code:
But this code does not compile because
&p
is&*const i32
. See for yourself on the Rust Playground.Update: I created PR #2004 to attempt to resolve this
The text was updated successfully, but these errors were encountered: