Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
consts
/
drop_zst.rs
blob: daf8f1b0343d177df511e51f8eeba5aa665b8f7c [
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
;
//~ ERROR destructor
}
fn
main
()
{}