Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
ui
/
consts
/
drop_zst.rs
blob: f7c70d3978b7f24922e45e7ef2f0bee815bafcce [
file
] [
log
] [
blame
]
// 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
()
{}