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