diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2023-06-11 23:44:28 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2023-06-15 17:59:13 +0800 |
| commit | 72b3b58efc6ed4bab93ba98586b62750abbdda79 (patch) | |
| tree | e69ee17e3d202a7a150e4e95c16c9bff6fe637bd /library/std | |
| parent | 314c39d2ea07d8b50649149358ebeb1a6bd09179 (diff) | |
| download | rust-72b3b58efc6ed4bab93ba98586b62750abbdda79.tar.gz rust-72b3b58efc6ed4bab93ba98586b62750abbdda79.zip | |
Extend `unused_must_use` to cover block exprs
Diffstat (limited to 'library/std')
| -rw-r--r-- | library/std/src/primitive_docs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs index 8266e899011..80289ca08c3 100644 --- a/library/std/src/primitive_docs.rs +++ b/library/std/src/primitive_docs.rs @@ -308,7 +308,7 @@ mod prim_never {} /// /// ```no_run /// // Undefined behaviour -/// unsafe { char::from_u32_unchecked(0x110000) }; +/// let _ = unsafe { char::from_u32_unchecked(0x110000) }; /// ``` /// /// USVs are also the exact set of values that may be encoded in UTF-8. Because |
