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