rust/tests/ui/issues/issue-2708.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
391 B
Rust
Raw Normal View History

//@ run-pass
#![allow(dead_code)]
#![allow(non_snake_case)]
//@ pretty-expanded FIXME #23616
2012-08-16 01:46:55 +00:00
struct Font {
fontbuf: usize,
cairo_font: usize,
font_dtor: usize,
}
impl Drop for Font {
2013-09-17 01:18:07 +00:00
fn drop(&mut self) {}
}
2012-09-05 22:58:43 +00:00
fn Font() -> Font {
Font {
fontbuf: 0,
cairo_font: 0,
font_dtor: 0
}
}
pub fn main() {
let _f: Box<_> = Box::new(Font());
}