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