Sign in
rust
/
rust-lang
/
rust
/
refs/heads/main
/
.
/
tests
/
ui
/
box
/
box-dst-node-with-empty-slice.rs
blob: 15ee8d4434b5dd9c616ff7fe4b8d9b9eb88c7bee [
file
] [
edit
]
//! Regression test for https://github.com/rust-lang/rust/issues/23491
//@ run-pass
#![
allow
(
unused_variables
)]
struct
Node
<
T
:
?
Sized
>(#[
allow
(
dead_code
)]
T
);
fn
main
()
{
let
x
:
Box
<
Node
<[
isize
]>>
=
Box
::
new
(
Node
([]));
}