Files
rust/tests/ui/drop/static-variable-with-drop-trait-9243.rs

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

18 lines
296 B
Rust
Raw Normal View History

2025-07-13 16:39:45 -04:00
// https://github.com/rust-lang/rust/issues/9243
//@ build-pass
#![allow(dead_code)]
// Regression test for issue 9243
#![allow(non_upper_case_globals)]
2014-02-18 01:28:29 +01:00
pub struct Test {
mem: isize,
2014-02-18 01:28:29 +01:00
}
pub static g_test: Test = Test {mem: 0};
2014-02-18 01:28:29 +01:00
impl Drop for Test {
fn drop(&mut self) {}
}
fn main() {}