Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
drop_zst.rs
blob: 40c66043f9fda770a6ee716869e986e5dc4d9dbe [
file
] [
log
] [
blame
] [
edit
]
//@ check-fail
#![
feature
(
const_precise_live_drops
)]
struct
S
;
impl
Drop
for
S
{
fn
drop
(&
mut
self
)
{
println
!(
"Hello!"
);
}
}
const
fn
foo
()
{
let
s
=
S
;
//~ destructor
}
fn
main
()
{}