mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
17 lines
301 B
Rust
17 lines
301 B
Rust
// 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
|
|
}
|
|
|
|
fn main() { }
|