DIFF.BLOG
New Following Discover Jobs
More
Top Writers Suggest a blog Upvotes plugin
Report bug Contact About
Sign up
Topics
Follow your own topics →
Menu
New Following Discover Jobs Top Writers
More
Suggest a blog Upvotes plugin Report bug Contact About
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS

*const as *mut compiles but *const as *const does not

· Users Rust Lang · Aug. 22, 2026, 9:24 p.m.
Rust Programming Type Casting Compiler Bugs programming-languages
Summary
The blog post discusses a potential bug in Rust's type casting, specifically that `*const` can be cast as `*mut`, while `*const` cannot be cast as `*const` for different trait-object-unsized types, highlighting inconsistencies in compiler behavior.
Read full post on users.rust-lang.org →
MORE POSTS LIKE THIS
Safe function wrapping unsafe code
Users Rust Lang · Jul 8, 2026
Rust Programming Safe vs. unsafe code
Rust is the Paper Straw of Computers
Bryan Lunduke · Jul 10, 2026
Rust Programming Software development critiques
This Week in Rust 657
this-week-in-rust · Jun 25, 2026
This Week in Rust Rust Programming
Are we mainstream yet? Takeaways from the RustWeek Industry Track
pendulum-project · Jun 9, 2026
Web Development Rust
Project goals update — December 2025
The Rust Programming Language · Jan 5, 2026
Rust Programming Project Updates
Underrust: How does u128 work on a 64-bit processor?
Graham King · Apr 5, 2025
Rust Programming u128
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub Continue with Google