about summary refs log tree commit diff
path: root/src/docs/copy_iterator.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/copy_iterator.txt')
-rw-r--r--src/docs/copy_iterator.txt20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/docs/copy_iterator.txt b/src/docs/copy_iterator.txt
deleted file mode 100644
index 5f9a2a015b8..00000000000
--- a/src/docs/copy_iterator.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-### What it does
-Checks for types that implement `Copy` as well as
-`Iterator`.
-
-### Why is this bad?
-Implicit copies can be confusing when working with
-iterator combinators.
-
-### Example
-```
-#[derive(Copy, Clone)]
-struct Countdown(u8);
-
-impl Iterator for Countdown {
-    // ...
-}
-
-let a: Vec<_> = my_iterator.take(1).collect();
-let b: Vec<_> = my_iterator.collect();
-```
\ No newline at end of file