Avoid unecesary copy for recursive from_fn evaluation
Hello, in the following code, it seems y.clone() is unecessary because foo allocate its result completly, why is it disallow ? mwe : const N: usize = 10; fn foo(x:&[f64])->Vec<f64> { x.to_vec() } fn main() { let mut y =…