about summary refs log tree commit diff
path: root/tests/ui/drop/issue-10028.rs
blob: 1ca1fbf504d73f213af60e3dde412429da0b4937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//@ run-pass
#![allow(dead_code)]
//@ aux-build:issue-10028.rs


extern crate issue_10028 as issue10028;

use issue10028::ZeroLengthThingWithDestructor;

struct Foo {
    zero_length_thing: ZeroLengthThingWithDestructor
}

fn make_foo() -> Foo {
    Foo { zero_length_thing: ZeroLengthThingWithDestructor::new() }
}

fn main() {
    let _f:Foo = make_foo();
}