Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct MyRefHaveDrop<'x>(&'x usize);
- impl Drop for MyRefHaveDrop<'_> {
- #[inline]
- fn drop(&mut self) {}
- }
- fn main() {
- let data = 451;
- match MyRefHaveDrop(&data) { _ => {} }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement