]>
Commit | Line | Data |
---|---|---|
064997fb FG |
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); | |
487cf647 | 5 | | ^^^^^^^^^^^^^^^^^^ |
064997fb | 6 | | |
2b03887a | 7 | = note: call `drop(from_raw(ptr))` if you intend to drop the `Box` |
064997fb FG |
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 | | ^^^^^^^^^^^^^^^ | |
064997fb FG |
13 | |
14 | warning: 1 warning emitted | |
15 |