Practice
Learn
← Quit
0 / 0 correct
Rust
Medium
1 of 60
Why can a &String be passed where &str is expected?
A
String and str are the same type
B
The compiler copies the string
C
Deref coercion: String implements Deref<Target = str>
D
&str is a trait