Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
consts
/
precise-drop-with-promoted.rs
blob: 6f2317a5a27a802aac4580ba0380114c45b6dc10 [
file
] [
log
] [
blame
]
// Regression test for issue #89938.
// check-pass
// compile-flags: --crate-type=lib
#![
feature
(
const_precise_live_drops
)]
pub
const
fn
f
()
{
let
_
:
Option
<
String
>
=
None
;
let
_
:
&
'
static
Option
<
String
>
=
&
None
;
}