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