Nathan Kleyn

Scala by day — Rust, Ruby and Haskell by night. I hail from London.

Hi! I currently work for Townhouse as the Head of Software Development, writing Typescript by day, and Rust and Ruby by night. I write for SitePoint about Ruby, and I’m on Twitter and on GitHub. You can get in touch with me at mail/at/nathankleyn.com.


404: Page not found

Compiling page v0.0.1 (file:///page)

error[E0308]: mismatched types
--> src/main.rs:3:7
  |
3 |       Page::find("/404.html");
  |       ^^^^^^^^^^^^^^^^^^^^^^^ expected struct `ValidPage`, found struct `InvalidPage`
  |
 = note: expected type `ValidPage`
            found type `InvalidPage`

error: aborting due to previous error

error: Could not compile `page`.

To learn more, run the command again with --verbose.