@@ -28,7 +28,7 @@ particular bits of it, etc.
2828# Example
2929
3030```rust
31- # #[allow(unused_must_use)];
31+ # #! [allow(unused_must_use)]
3232use std::io::{File, fs};
3333
3434let path = Path::new("foo.txt");
@@ -162,7 +162,7 @@ impl File {
162162 /// # Example
163163 ///
164164 /// ```rust
165- /// # #[allow(unused_must_use)];
165+ /// # #! [allow(unused_must_use)]
166166 /// use std::io::File;
167167 ///
168168 /// let mut f = File::create(&Path::new("foo.txt"));
@@ -220,7 +220,7 @@ impl File {
220220/// # Example
221221///
222222/// ```rust
223- /// # #[allow(unused_must_use)];
223+ /// # #! [allow(unused_must_use)]
224224/// use std::io::fs;
225225///
226226/// let p = Path::new("/some/file/path.txt");
@@ -290,7 +290,7 @@ pub fn lstat(path: &Path) -> IoResult<FileStat> {
290290/// # Example
291291///
292292/// ```rust
293- /// # #[allow(unused_must_use)];
293+ /// # #! [allow(unused_must_use)]
294294/// use std::io::fs;
295295///
296296/// fs::rename(&Path::new("foo"), &Path::new("bar"));
@@ -314,7 +314,7 @@ pub fn rename(from: &Path, to: &Path) -> IoResult<()> {
314314/// # Example
315315///
316316/// ```rust
317- /// # #[allow(unused_must_use)];
317+ /// # #! [allow(unused_must_use)]
318318/// use std::io::fs;
319319///
320320/// fs::copy(&Path::new("foo.txt"), &Path::new("bar.txt"));
@@ -364,7 +364,7 @@ pub fn copy(from: &Path, to: &Path) -> IoResult<()> {
364364/// # Example
365365///
366366/// ```rust
367- /// # #[allow(unused_must_use)];
367+ /// # #! [allow(unused_must_use)]
368368/// use std::io;
369369/// use std::io::fs;
370370///
@@ -416,7 +416,7 @@ pub fn readlink(path: &Path) -> IoResult<Path> {
416416/// # Example
417417///
418418/// ```rust
419- /// # #[allow(unused_must_use)];
419+ /// # #! [allow(unused_must_use)]
420420/// use std::io;
421421/// use std::io::fs;
422422///
@@ -437,7 +437,7 @@ pub fn mkdir(path: &Path, mode: FilePermission) -> IoResult<()> {
437437/// # Example
438438///
439439/// ```rust
440- /// # #[allow(unused_must_use)];
440+ /// # #! [allow(unused_must_use)]
441441/// use std::io::fs;
442442///
443443/// let p = Path::new("/some/dir");
0 commit comments