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 09:46:55 +08:00
struct Font {
fontbuf: usize,
cairo_font: usize,
font_dtor: usize,
}
impl Drop for Font {
2013-09-17 09:18:07 +08:00
fn drop(&mut self) {}
}
2012-09-06 06:58:43 +08:00
fn Font() -> Font {
Font {
fontbuf: 0,
cairo_font: 0,
font_dtor: 0
}
}
pub fn main() {
let _f: Box<_> = Box::new(Font());
}