2014-12-26 14:37:56 -06:00
|
|
|
// Test sized-ness checking in substitution in impls.
|
2014-12-02 17:06:39 -06:00
|
|
|
|
2014-12-26 14:37:56 -06:00
|
|
|
// impl - unbounded
|
|
|
|
trait T2<Z> {
|
2015-02-12 09:29:52 -06:00
|
|
|
fn foo(&self, z: Z);
|
2014-12-26 14:37:56 -06:00
|
|
|
}
|
2015-02-12 09:29:52 -06:00
|
|
|
struct S4<Y: ?Sized>(Box<Y>);
|
2015-01-05 15:16:49 -06:00
|
|
|
impl<X: ?Sized> T2<X> for S4<X> {
|
2018-07-10 16:10:13 -05:00
|
|
|
//~^ ERROR the size for values of type
|
2014-12-02 17:06:39 -06:00
|
|
|
}
|
|
|
|
|
2014-12-26 14:37:56 -06:00
|
|
|
fn main() { }
|