summary refs log tree commit diff
path: root/src/test/ui/dropck/drop-on-non-struct.rs
blob: 259cdf40ae5f8b1958fe369aa9c9c61cb5e598b1 (plain)
1
2
3
4
5
6
7
8
9
10
impl<'a> Drop for &'a mut isize {
    //~^ ERROR the Drop trait may only be implemented on structures
    //~^^ ERROR E0117
    fn drop(&mut self) {
        println!("kaboom");
    }
}

fn main() {
}