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