summaryrefslogtreecommitdiffstats
path: root/tests/ui/drop/auxiliary/issue-10028.rs
blob: 135f26f40479c88bd7a47a44d07d9213d3d58f5c (plain)
1
2
3
4
5
6
7
8
9
pub struct ZeroLengthThingWithDestructor;
impl Drop for ZeroLengthThingWithDestructor {
    fn drop(&mut self) {}
}
impl ZeroLengthThingWithDestructor {
    pub fn new() -> ZeroLengthThingWithDestructor {
        ZeroLengthThingWithDestructor
    }
}