Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. struct MyRefHaveDrop<'x>(&'x usize);
  2.  
  3. impl Drop for MyRefHaveDrop<'_> {
  4. #[inline]
  5. fn drop(&mut self) {}
  6. }
  7.  
  8. fn main() {
  9. let data = 451;
  10. match MyRefHaveDrop(&data) { _ => {} }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement