Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 20
What is wrong with this signature?
fn make() -> &String { let s = String::from("hi"); &s }
A
It returns a reference to a local that is dropped at function end; return String instead
B
It needs `mut`
C
String can't be returned
D
Nothing; it compiles