diff --git a/src/ch15-05-interior-mutability.md b/src/ch15-05-interior-mutability.md
index c730d02bf3..e736167dcb 100644
--- a/src/ch15-05-interior-mutability.md
+++ b/src/ch15-05-interior-mutability.md
@@ -195,7 +195,7 @@ implement a mock object to do just that, but the borrow checker won’t allow it
Filename: src/lib.rs
-```rust,does_not_compile
+```rust,ignore
#[cfg(test)]
mod tests {
use super::*;
@@ -274,7 +274,7 @@ shows what that looks like:
Filename: src/lib.rs
-```rust
+```rust,ignore
#[cfg(test)]
mod tests {
use super::*;