X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Fcore%2Fsrc%2Fascii.rs;h=532208e41afa2ba2b01169da64c061d0d5587347;hb=0610d4fa66f95fa3a4a7af86239976ed668bab0e;hp=0a456ee1eb2d59fde0ac9d7c2b56382ee0a1da1a;hpb=37f17bca7ccca0b393a58c87bb87bac18f371f61;p=rust.git diff --git a/library/core/src/ascii.rs b/library/core/src/ascii.rs index 0a456ee1eb2..532208e41af 100644 --- a/library/core/src/ascii.rs +++ b/library/core/src/ascii.rs @@ -18,6 +18,7 @@ /// /// This `struct` is created by the [`escape_default`] function. See its /// documentation for more. +#[must_use = "iterators are lazy and do nothing unless consumed"] #[stable(feature = "rust1", since = "1.0.0")] #[derive(Clone)] pub struct EscapeDefault {