summaryrefslogtreecommitdiffstats
path: root/src/doc/book/listings/ch13-functional-features/listing-13-10/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/book/listings/ch13-functional-features/listing-13-10/src/main.rs')
-rw-r--r--src/doc/book/listings/ch13-functional-features/listing-13-10/src/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doc/book/listings/ch13-functional-features/listing-13-10/src/main.rs b/src/doc/book/listings/ch13-functional-features/listing-13-10/src/main.rs
new file mode 100644
index 000000000..55a0dd37e
--- /dev/null
+++ b/src/doc/book/listings/ch13-functional-features/listing-13-10/src/main.rs
@@ -0,0 +1,7 @@
+fn main() {
+ // ANCHOR: here
+ let v1 = vec![1, 2, 3];
+
+ let v1_iter = v1.iter();
+ // ANCHOR_END: here
+}