There isn't such attribute yet.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Pre-RFC: `#[must_bind]` | 51 | 6440 | March 24, 2021 | |
| Must_use and linear types | 22 | 3497 | October 30, 2020 | |
| [Idea] Attributes to warn if value is dropped without being acted upon | 25 | 2544 | November 10, 2019 | |
| Overriding rustc's automatic type dropping | 6 | 1003 | March 25, 2019 | |
| Why are Drain types not #[must_use]? | 11 | 556 | September 11, 2025 |