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

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

30 lines
358 B
Rust
Raw Normal View History

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