about summary refs log tree commit diff
path: root/src/test/compile-fail/unsized-trait-impl-trait-arg.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2015-02-12 10:29:52 -0500
committerNiko Matsakis <niko@alum.mit.edu>2015-02-18 10:25:28 -0500
commit872ce479550a3d805babb0ca409dfc3cf6f52309 (patch)
treea1cf314833d1c99b297d59c30a2f1289f111e57e /src/test/compile-fail/unsized-trait-impl-trait-arg.rs
parentef42c2befd9451cd913de60539487a483ae9deac (diff)
downloadrust-872ce479550a3d805babb0ca409dfc3cf6f52309.tar.gz
rust-872ce479550a3d805babb0ca409dfc3cf6f52309.zip
Fallout: tests. As tests frequently elide things, lots of changes
here.  Some of this may have been poorly rebased, though I tried to be
careful and preserve the spirit of the test.
Diffstat (limited to 'src/test/compile-fail/unsized-trait-impl-trait-arg.rs')
-rw-r--r--src/test/compile-fail/unsized-trait-impl-trait-arg.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/compile-fail/unsized-trait-impl-trait-arg.rs b/src/test/compile-fail/unsized-trait-impl-trait-arg.rs
index ac8043d6852..4723dfeaeb9 100644
--- a/src/test/compile-fail/unsized-trait-impl-trait-arg.rs
+++ b/src/test/compile-fail/unsized-trait-impl-trait-arg.rs
@@ -12,8 +12,9 @@
 
 // impl - unbounded
 trait T2<Z> {
+    fn foo(&self, z: Z);
 }
-struct S4<Y: ?Sized>;
+struct S4<Y: ?Sized>(Box<Y>);
 impl<X: ?Sized> T2<X> for S4<X> {
     //~^ ERROR `core::marker::Sized` is not implemented for the type `X`
 }