diff options
| author | fee1-dead <ent3rm4n@gmail.com> | 2022-12-28 15:51:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-28 15:51:39 +0800 |
| commit | 58233e90b8e4f2712b0155f437cbad8d1bc6c58e (patch) | |
| tree | e319f88fdaf77fb35d4b9fb565232bc7de0d28d3 /src/test | |
| parent | d1193ad1e6f05271b442a96d6ea7de18b66163a0 (diff) | |
| parent | 3b8b0ac62ad2a8f828763350a37dfd5e14db171e (diff) | |
Rollup merge of #104024 - noeddl:unused-must-use, r=compiler-errors
Fix `unused_must_use` warning for `Box::from_raw`
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/lint/unused/must-use-box-from-raw.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/lint/unused/must-use-box-from-raw.stderr b/src/test/ui/lint/unused/must-use-box-from-raw.stderr index 72118275774..47ab613bec2 100644 --- a/src/test/ui/lint/unused/must-use-box-from-raw.stderr +++ b/src/test/ui/lint/unused/must-use-box-from-raw.stderr @@ -4,7 +4,7 @@ warning: unused return value of `Box::<T>::from_raw` that must be used LL | Box::from_raw(ptr); | ^^^^^^^^^^^^^^^^^^ | - = note: call `drop(from_raw(ptr))` if you intend to drop the `Box` + = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` note: the lint level is defined here --> $DIR/must-use-box-from-raw.rs:5:9 | |
