2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(dead_code)]
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ aux-build:issue-10028.rs
|
2014-03-06 17:55:35 +00:00
|
|
|
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ pretty-expanded FIXME #23616
|
2015-03-22 20:13:15 +00:00
|
|
|
|
2015-03-27 17:22:44 +00:00
|
|
|
extern crate issue_10028 as issue10028;
|
2014-03-06 17:55:35 +00:00
|
|
|
|
|
|
|
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();
|
|
|
|
}
|