return - Possible to declare functions that will warn on unused results in Rust? -


does rust have way declare function, not using result warn - types?

something gcc's __attribute__((warn_unused_result));?

it appears #[must_use] attribute applicable structs, enums , unions (union not available in stable rust yet, though): source. think means can't override function.


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -