about summary refs log tree commit diff
path: root/tests/ui/unsized/unsized-trait-impl-trait-arg.rs
blob: e7602b175c89be775a9d2e35724dcb34d6980d8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Test sized-ness checking in substitution in impls.

// impl - unbounded
trait T2<Z> {
    fn foo(&self, z: Z);
}
struct S4<Y: ?Sized>(Box<Y>);
impl<X: ?Sized> T2<X> for S4<X> {
    //~^ ERROR the size for values of type
    //~| ERROR not all trait items implemented
}

fn main() { }