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