Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
sized
/
sized-box-unsized-content.rs
blob: 9cc202a1582fd907405000dcc187532655de68f8 [
file
] [
log
] [
blame
]
//! Check that `Box<T>` is `Sized`, even when `T` is a dynamically sized type.
//@ run-pass
#![
allow
(
dead_code
)]
fn
bar
<
T
:
Sized
>()
{}
fn
foo
<
T
>()
{
bar
::<
Box
<
T
>>()
}
pub
fn
main
()
{}