title: Struct or union expected
body: <p>This code results in the <code>struct or union expected</code> error:  </p>
  
  <pre class="lang-c prettyprint-override"><code>void doSomething(Animation* anim) {
      anim-&gt;quad.x = anim.x * anim.currFrame;
  }
  </code></pre>
  
  <p>anim.quad is a <code>Rectangle</code> with the following declaration</p>
  
  <pre class="lang-c prettyprint-override"><code>typedef struct Rectangle {
      float x;
      float y;
      float width;
      float height;
  } Rectangle;
  </code></pre>
  
  <p>Definition of <code>Animation</code>:</p>
  
  <pre class="lang-c prettyprint-override"><code>typedef struct Animation {
      int currFrame;
      int framesCount;
      int x;
      int y;
      int width;
      int height;
      Texture2D image;
      Rectangle quad;
      Color tint;
  } Animation;
  </code></pre>
  
  <p>Exact error message:</p>
  
  <pre><code>animate.c:44: error: struct or union expected
  </code></pre>