title: Accessing a struct inside an enum
body: <p>How do I access field <code>c</code> inside <code>struct</code> of type <code>B_</code> inside <code>enum</code> of type <code>A</code> in this case?</p>
  
  <pre><code>enum A {
      B(B_),
      D(D_)
  }
  
  enum D_ { D_1, D_2 }
  
  struct B_ {
      c: Vec&lt;i32&gt;,
  }
  </code></pre>
  
  <p>Obvious stuff like this doesn't work:</p>
  
  <pre><code>let y = A::B;
  y.c = Vec::new();
  </code></pre>