must_use Annotation

#must_use Annotation helps in lifting the code and make it readable to the developer.

Rust stdlib uses #must_use Annotation for warnings and catching errors during development and compilation of the code. If you annotate using this annotation, values of that type should be used. Otherwise, it will flag a warning. Futures is another example where it is created but not waited then it raises a warning.

Leave a comment