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

16 lines
225 B
Rust
Raw Normal View History

#![crate_type = "rlib"]
2015-02-17 19:00:20 -08:00
pub static mut statik: isize = 0;
struct A;
impl Drop for A {
fn drop(&mut self) {
unsafe { statik = 1; }
}
}
2015-01-04 23:33:35 -05:00
pub fn callback<F>(f: F) where F: FnOnce() {
let _a = A;
f();
}