rust/tests/ui/mismatched_types/issue-112036.rs

8 lines
129 B
Rust

struct Foo;
impl Drop for Foo {
fn drop(self) {} //~ ERROR method `drop` has an incompatible type for trait
}
fn main() {}