News for hackers. Stuff that matters.
Re:What it feels like when Rust saves your bacon by flohofwoe on Friday June 24, 2022 @09:08AM (#31861183)
Static analyzers can catch this stuff nowaways (in this case clang's builtin analyzer):

https://godbolt.org/z/1MfErrYd8

...in more simple cases it's also a regular warning:

https://godbolt.org/z/5v9YsWd4j

There are no comments on this comment yet.