]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/must-use-box-from-raw.stderr
Auto merge of #106989 - clubby789:is-zero-num, r=scottmcm
[rust.git] / tests / ui / lint / unused / must-use-box-from-raw.stderr
1 warning: unused return value of `Box::<T>::from_raw` that must be used
2   --> $DIR/must-use-box-from-raw.rs:8:5
3    |
4 LL |     Box::from_raw(ptr);
5    |     ^^^^^^^^^^^^^^^^^^
6    |
7    = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
8 note: the lint level is defined here
9   --> $DIR/must-use-box-from-raw.rs:5:9
10    |
11 LL | #![warn(unused_must_use)]
12    |         ^^^^^^^^^^^^^^^
13
14 warning: 1 warning emitted
15