mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-30 02:45:34 +00:00
18 lines
208 B
Rust
18 lines
208 B
Rust
// 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() {}
|