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