blob: 1692470e8d1a887c2405aed9d5207073c3fc2e04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// 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();
}
|