mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
14 lines
287 B
Rust
14 lines
287 B
Rust
// 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() { }
|