]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/issue-2708.rs
3ac4b874f3ad8cb00dd48fb3e1622c0d13c10174
[rust.git] / src / test / run-pass / issue-2708.rs
1 // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11
12 struct Font {
13     fontbuf: uint,
14     cairo_font: uint,
15     font_dtor: uint,
16
17 }
18
19 impl Drop for Font {
20     fn drop(&mut self) {}
21 }
22
23 fn Font() -> Font {
24     Font {
25         fontbuf: 0,
26         cairo_font: 0,
27         font_dtor: 0
28     }
29 }
30
31 pub fn main() {
32     let _f = box Font();
33 }