about summary refs log tree commit diff
path: root/tests/ui/unsized/unsized7.rs
blob: 63e015c28d37884639f7b8712fff2a2fe363e2c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Test sized-ness checking in substitution in impls.

trait T {}

// I would like these to fail eventually.
// impl - bounded
trait T1<Z: T> {
    fn dummy(&self) -> Z;
}

struct S3<Y: ?Sized>(Box<Y>);
impl<X: ?Sized + T> T1<X> for S3<X> {
    //~^ ERROR the size for values of type
    //~| ERROR not all trait items implemented
}

fn main() { }