rust/tests/ui/drop/missing-drop-method.rs

5 lines
124 B
Rust

struct DropNoMethod;
impl Drop for DropNoMethod {} //~ ERROR not all trait items implemented, missing: `drop`
fn main() {}