Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 695
Generic code: why might passing `r` to `fn take<T>(t: T)` move it, unlike `fn bump(x: &mut i32)`?
A
Generics always clone
B
With a generic parameter, no implicit reborrow occurs, so the &mut is moved into the call
C
Generics can't take references
D
It isn't moved