]> git.lizzy.rs Git - rust.git/blob - src/test/ui/drop/issue-10028.rs
Auto merge of #102684 - JhonnyBillM:delete-target-data-layout-errors-wrapper, r=davidtwco
[rust.git] / src / test / ui / drop / issue-10028.rs
1 // run-pass
2 #![allow(dead_code)]
3 // aux-build:issue-10028.rs
4
5 // pretty-expanded FIXME #23616
6
7 extern crate issue_10028 as issue10028;
8
9 use issue10028::ZeroLengthThingWithDestructor;
10
11 struct Foo {
12     zero_length_thing: ZeroLengthThingWithDestructor
13 }
14
15 fn make_foo() -> Foo {
16     Foo { zero_length_thing: ZeroLengthThingWithDestructor::new() }
17 }
18
19 fn main() {
20     let _f:Foo = make_foo();
21 }