]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/drop_zst.rs
suggest fix for attempted integer identifier in patterns
[rust.git] / tests / ui / consts / drop_zst.rs
1 // check-fail
2
3 #![feature(const_precise_live_drops)]
4
5 struct S;
6
7 impl Drop for S {
8     fn drop(&mut self) {
9         println!("Hello!");
10     }
11 }
12
13 const fn foo() {
14     let s = S; //~ destructor
15 }
16
17 fn main() {}