Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 10
Why is implementing Deref to emulate inheritance considered an anti-pattern?
A
Deref can't be implemented for structs
B
Deref is unsafe
C
It disables Drop
D
Deref is meant for smart pointers; using it for 'inheritance' gives surprising method resolution and leaky abstractions