rust/tests/ui/consts/precise-drop-with-promoted.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
227 B
Rust
Raw Normal View History

// Regression test for issue #89938.
2023-12-06 22:01:21 +00:00
//@ check-pass
//@ compile-flags: --crate-type=lib
2023-07-27 15:51:02 +00:00
#![feature(const_precise_live_drops)]
pub const fn f() {
let _: Option<String> = None;
let _: &'static Option<String> = &None;
}