mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
11 lines
258 B
Rust
11 lines
258 B
Rust
//! Smoke test: dereferencing boxed zero-sized types (ZSTs) should not crash.
|
|
//!
|
|
//! Originally a regression test of github.com/rust-lang/rust/issues/13360
|
|
//! but repurposed for a smoke test.
|
|
|
|
//@ run-pass
|
|
|
|
pub fn main() {
|
|
let _: () = *Box::new(());
|
|
}
|