diff options
| author | Anett Seeker <noeddl@users.noreply.github.com> | 2022-11-05 21:52:18 +0100 |
|---|---|---|
| committer | Anett Seeker <noeddl@users.noreply.github.com> | 2022-11-05 21:52:18 +0100 |
| commit | 3b8b0ac62ad2a8f828763350a37dfd5e14db171e (patch) | |
| tree | 7bc65c24e4cf31086e1423220a23e3e6f6884ee8 /src/test | |
| parent | 6b8d9dd0a09851b3e4f400ddd1303857945be25d (diff) | |
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 011acc3bf5d..fcf32b75d8d 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 | |
