You can mark doctests as `compile_fail` but this isn't actually documented anywhere in the Rust book, even though it should be.