about summary refs log tree commit diff
path: root/tests/ui/sized/sized-box-unsized-content.rs
blob: 9cc202a1582fd907405000dcc187532655de68f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
//! 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() {}