]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/precise-drop-with-promoted.rs
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / precise-drop-with-promoted.rs
1 // Regression test for issue #89938.
2 // check-pass
3 // compile-flags: --crate-type=lib
4 #![feature(const_precise_live_drops)]
5
6 pub const fn f() {
7     let _: Option<String> = None;
8     let _: &'static Option<String> = &None;
9 }