Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 10
Why is `&mut T` invariant in T, while `&T` is covariant?
A
If &mut &'long str could be used as &mut &'short str, you could write a short-lived reference into a long-lived slot
B
Mutable references are slower
C
It's an arbitrary language choice
D
Covariance only applies to integers