2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2014-03-06 11:55:35 -06:00
|
|
|
// aux-build:issue-10028.rs
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-03-27 12:22:44 -05:00
|
|
|
extern crate issue_10028 as issue10028;
|
2014-03-06 11:55:35 -06: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();
|
|
|
|
}
|