mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
22 lines
393 B
Rust
22 lines
393 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
//@ aux-build:issue-10028.rs
|
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
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();
|
|
}
|