mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
14 lines
182 B
Rust
14 lines
182 B
Rust
pub static mut DROPPED: bool = false;
|
|
|
|
pub struct S {
|
|
_unsized: [u8]
|
|
}
|
|
|
|
impl Drop for S {
|
|
fn drop(&mut self) {
|
|
unsafe {
|
|
DROPPED = true;
|
|
}
|
|
}
|
|
}
|