title: How to get access to enum variant unnamed field?
body: <p>I would like to print data of tuple enum without named fields.</p>
  
  <p>A tuple is a general way of grouping together some number of other values with a variety of types into one compound type.</p>
  
  <pre><code>#[derive(Debug)]
  enum Coin {
      Penny(String),
      Nickel { id: String },
  }
  
  fn main() {
      let penny = Coin::Penny(String::from("penny"));
      let nickel: Coin = Coin::Nickel { id: String::from("nickel") };
  
      println!("{} {:?} ", penny.0, penny);
      println!("{:?}", nickel);
  }
  </code></pre>
  
  <p>In this example, <code>Nickel</code> is a struct-like enum variant, whereas <code>Penny</code> is simply called an <a href="https://doc.rust-lang.org/reference/items/enumerations.html" rel="nofollow noreferrer">enum variant</a>. </p>
  
  <p>I get a compiler error: </p>
  
  <pre class="lang-none prettyprint-override"><code>error[E0609]: no field `0` on type `Coin`
  For more information about this error, try `rustc --explain E0609`.
  </code></pre>