We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef9786c + 0384722 commit dfe0f88Copy full SHA for dfe0f88
src/doc/reference.md
@@ -2071,6 +2071,9 @@ macro scope.
2071
trait of the same name. `{Self}` will be replaced with the type that is supposed
2072
to implement the trait but doesn't. To use this, the `on_unimplemented` feature gate
2073
must be enabled.
2074
+- `must_use` - on structs and enums, will warn if a value of this type isn't used or
2075
+ assigned to a variable. You may also include an optional message by using
2076
+ `#[must_use = "message"]` which will be given alongside the warning.
2077
2078
### Conditional compilation
2079
0 commit comments