Here are programs that are accepted (without warnings or errors) in C, C++, Golang, and Java, that you'll never see being accepted by the Rust compiler.
In 2021, Android introduced Rust into its code base. This has prevented thousands of security vulnerabilities for the users of those devices using Android 13 and beyond.
Timeline
00:00 Introduction
01:23 Equality instead of assignment (C)
02:36 Use after free (C)
04:02 Shared mutable access (Go)
05:30 Iterator invalidation (C++)
06:55 Null pointer exception (Java)
08:10 Wrap up
📚 Resources:
Code: https://github.com/timClicks/tutorial...
Android blog post: https://security.googleblog.com/2022/...
🦀 Rust resources:
Tim's tutorial videos https://timclicks.dev
Rust Documentation: https://doc.rust-lang.org/book/
Rust Playground: https://play.rust-lang.org/
Rust in Action (Tim's book!) https://mng.bz/4MlD
How to Learn Rust (online course!) https://learning.accelerant.dev/how-t...
👋 Connect with Tim:
Twitter: / timclicks
GitHub: https://github.com/timClicks
Mastodon: https://mastodon.nz/@timClicks
DEV: https://dev.to/timclicks/
Patreon (extra learning materials) / timclicks
🔔 Subscribe to the channel and click the bell icon to stay updated with the latest videos and live streams from timClicks: https://www.youtube.com/timClicks?sub...
👍 Like this video if you found it helpful, and share it with your friends who are also interested in Rust programming.