]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-2708.rs
Auto merge of #98100 - bjorn3:use_object_for_bitcode_reading, r=wesleywiser
[rust.git] / src / test / ui / issues / issue-2708.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(non_snake_case)]
4
5 // pretty-expanded FIXME #23616
6
7
8
9 struct Font {
10     fontbuf: usize,
11     cairo_font: usize,
12     font_dtor: usize,
13
14 }
15
16 impl Drop for Font {
17     fn drop(&mut self) {}
18 }
19
20 fn Font() -> Font {
21     Font {
22         fontbuf: 0,
23         cairo_font: 0,
24         font_dtor: 0
25     }
26 }
27
28 pub fn main() {
29     let _f: Box<_> = Box::new(Font());
30 }