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