]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/drop_zst.rs
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / 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() {}