rust/tests/ui/drop/issue-17718-const-destructors.rs
2024-02-16 20:02:50 +00:00

11 lines
125 B
Rust

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