]> git.lizzy.rs Git - rust.git/commitdiff
Enable a test for correct treatment of Sized?
authorNick Cameron <ncameron@mozilla.com>
Wed, 3 Sep 2014 04:50:18 +0000 (16:50 +1200)
committerNick Cameron <ncameron@mozilla.com>
Wed, 3 Sep 2014 04:50:18 +0000 (16:50 +1200)
src/test/compile-fail/unsized3.rs

index c07dcf9368385425b6cbd0411a5ac443666075b4..4f1f21f6c0e276e684f00c19228822767285c6f2 100644 (file)
@@ -68,14 +68,15 @@ impl<Sized? X: T> T1<X> for S3<X> { //ERROR instantiating a type parameter with
 trait T2<Z> {
 }
 impl<Sized? X> T2<X> for S3<X> { //ERROR instantiating a type parameter with an incompatible type `X
+*/
 
 // impl - struct
 trait T3<Sized? Z> {
 }
 struct S4<Y>;
-impl<Sized? X> T3<X> for S4<X> { //ERROR instantiating a type parameter with an incompatible type `X
+impl<Sized? X> T3<X> for S4<X> { //~ ERROR instantiating a type parameter with an incompatible type
 }
-*/
+
 
 pub fn main() {
 }