]> git.lizzy.rs Git - rust.git/blob - src/test/ui/drop/issue-17718-const-destructors.rs
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / drop / issue-17718-const-destructors.rs
1 // check-pass
2 #![allow(dead_code)]
3 struct A;
4 impl Drop for A {
5     fn drop(&mut self) {}
6 }
7
8 const FOO: A = A;
9
10 fn main() {}