]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/2018-edition/src/ch13-01-closures.md
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / doc / book / 2018-edition / src / ch13-01-closures.md
index a00273e06648d601928c48d7284774648af60b8a..c67a5b73b7e90e67102462797bdc55fbc042d596 100644 (file)
@@ -384,7 +384,7 @@ first time and a `u32` the second time, we’ll get an error.
 
 <span class="filename">Filename: src/main.rs</span>
 
-```rust,ignore
+```rust,ignore,does_not_compile
 let example_closure = |x| x;
 
 let s = example_closure(String::from("hello"));
@@ -634,7 +634,7 @@ The first problem is that a `Cacher` instance assumes it will always get the
 same value for the parameter `arg` to the `value` method. That is, this test of
 `Cacher` will fail:
 
-```rust,ignore
+```rust,ignore,panics
 #[test]
 fn call_with_different_values() {
     let mut c = Cacher::new(|a| a);
@@ -714,7 +714,7 @@ code won’t compile:
 
 <span class="filename">Filename: src/main.rs</span>
 
-```rust,ignore
+```rust,ignore,does_not_compile
 fn main() {
     let x = 4;
 
@@ -780,7 +780,7 @@ yet compile.
 
 <span class="filename">Filename: src/main.rs</span>
 
-```rust,ignore
+```rust,ignore,does_not_compile
 fn main() {
     let x = vec![1, 2, 3];