SHARE
TWEET

Untitled

a guest Aug 17th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #[derive(Debug)] struct S(i32);
  2.  
  3. impl Drop for S { fn drop (self: &'_ mut Self) {
  4.     println!("{}", self.0);
  5. }}
  6.  
  7. fn main() {
  8.     const C: S = S(0);
  9.     dbg!(C);
  10.     C.0 = 123;
  11.     dbg!(C);
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top