mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 22:47:52 +00:00
12 lines
191 B
Rust
12 lines
191 B
Rust
//! 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() {}
|