Simplify concatenation in Rust's problem 17.
Fix move of non-copyable values in Rust.