SHARE
TWEET

Untitled

a guest Aug 25th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #[derive(Debug)]
  2. struct S {
  3.     foo: String,
  4.     bar: Vec<usize>,
  5. }
  6.  
  7. fn main() {
  8.     let x = S {
  9.         foo: "foo".to_string(),
  10.         bar: vec![1, 2, 3, 5, 8, 13],
  11.     };
  12.     println!("{:?}", x);
  13.     println!("{:#?}", x);
  14. }
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