blob: ef5e18126dc6860bf7e18a1ce3544d1bc190bd6f [file] [log] [blame]
impl<'a> Drop for &'a mut isize {
//~^ ERROR the `Drop` trait may only be implemented for structs, enums, and unions
//~^^ ERROR E0117
fn drop(&mut self) {
println!("kaboom");
}
}
impl Drop for Nonexistent {
//~^ ERROR cannot find type `Nonexistent`
fn drop(&mut self) { }
}
fn main() {
}