diff options
| author | Felix Chapman <aelred717@gmail.com> | 2018-12-10 14:45:26 +0000 |
|---|---|---|
| committer | Felix Chapman <aelred717@gmail.com> | 2018-12-10 14:45:26 +0000 |
| commit | ecc4ca54a4c7b1c436c466357877336c1df781cd (patch) | |
| tree | fc1152a312945022c21650a4f8937d3c15ccc466 /src/libcore/future | |
| parent | a336228760389b5ef01390f1c90a029dc44a0dc1 (diff) | |
| download | rust-ecc4ca54a4c7b1c436c466357877336c1df781cd.tar.gz rust-ecc4ca54a4c7b1c436c466357877336c1df781cd.zip | |
Add #[must_use] attribute to stdlib traits
Diffstat (limited to 'src/libcore/future')
| -rw-r--r-- | src/libcore/future/future.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/future/future.rs b/src/libcore/future/future.rs index 0c870f9e404..5dee1d6dd3a 100644 --- a/src/libcore/future/future.rs +++ b/src/libcore/future/future.rs @@ -33,6 +33,7 @@ use task::{Poll, LocalWaker}; /// /// When using a future, you generally won't call `poll` directly, but instead /// `await!` the value. +#[must_use] pub trait Future { /// The result of the `Future`. type Output; |
