rust/src/test/ui/issues/issue-17718-const-destructors.rs
2019-07-03 06:30:28 +09:00

11 lines
161 B
Rust

// build-pass (FIXME(62277): could be check-pass?)
#![allow(dead_code)]
struct A;
impl Drop for A {
fn drop(&mut self) {}
}
const FOO: A = A;
fn main() {}