rust/src/test/ui/issues/issue-17718-const-destructors.rs
2018-12-25 21:08:33 -07:00

11 lines
126 B
Rust

// compile-pass
#![allow(dead_code)]
struct A;
impl Drop for A {
fn drop(&mut self) {}
}
const FOO: A = A;
fn main() {}