Slug: own-move-02 · Paired reading: Chapter 5
Prompt
Implement fn greet(name: &str) -> String that returns "hello, {name}".
The input is borrowed; the output is owned. Say aloud why that split is load-bearing.
Predict first
Could this return &str pointing into a local String? What error fires?