X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/29958c0fd33c5e714b52bed79a1832113c43b8d8..e8e3f9b3dec1e5e8a6ed6c59cfa661df2252f3db:/workspace/src/part06.rs diff --git a/workspace/src/part06.rs b/workspace/src/part06.rs index 7288327..04a0847 100644 --- a/workspace/src/part06.rs +++ b/workspace/src/part06.rs @@ -25,7 +25,9 @@ impl BigInt { // Now we can write `vec_min`. fn vec_min(v: &Vec) -> Option { let mut min: Option = None; + // If `v` is a shared borrowed vector, then the default for iterating over it is to call `iter`, the iterator that borrows the elements. for e in v { + let e = e.clone(); unimplemented!() } min