title: Why can a Rust struct be defined without a semicolon?
body: <p>I'm learning Rust and the chapter for structs gives an example of a struct without a <code>;</code> at the end. It compiles but I have no idea why this is allowed.</p>
  
  <pre><code>fn main() {
      struct User {
          username: String,
          email: String,
          sign_in_count: u64,
          active: bool,
      }
  }
  </code></pre>
  
  <p>... same question goes for functions, actually.</p>