]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-2708.rs
Enable full revision in const generics ui tests
[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 #![feature(box_syntax)]
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 Font();
30 }