about summary refs log tree commit diff
path: root/tests/ui/drop/static-variable-with-drop-trait-9243.rs
blob: 0ae32c983e9ea9af3666b08aa24ced572e921c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// https://github.com/rust-lang/rust/issues/9243
//@ build-pass
#![allow(dead_code)]
// Regression test for issue 9243
#![allow(non_upper_case_globals)]

pub struct Test {
    mem: isize,
}

pub static g_test: Test = Test {mem: 0};

impl Drop for Test {
    fn drop(&mut self) {}
}

fn main() {}