We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
must_use
1 parent c16783b commit cebfaf8Copy full SHA for cebfaf8
library/core/src/ops/range.rs
@@ -751,7 +751,7 @@ impl<T: Copy> Bound<&T> {
751
/// assert_eq!((1..12).start_bound().copied(), Included(1));
752
/// ```
753
#[unstable(feature = "bound_copied", issue = "145966")]
754
- #[must_use = "`self` will be dropped if the result is not used"]
+ #[must_use]
755
pub fn copied(self) -> Bound<T> {
756
match self {
757
Bound::Unbounded => Bound::Unbounded,
0 commit comments