Skip to content

Commit 8a89867

Browse files
committed
auto merge of #16956 : nick29581/rust/unsized-test-1, r=alexcrichton
I landed this disabled, but it now passes since @pcwalton implemented RFC 11 r?
2 parents 3ce5a02 + 69a9d23 commit 8a89867

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/compile-fail/unsized3.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ impl<Sized? X: T> T1<X> for S3<X> { //ERROR instantiating a type parameter with
6868
trait T2<Z> {
6969
}
7070
impl<Sized? X> T2<X> for S3<X> { //ERROR instantiating a type parameter with an incompatible type `X
71+
*/
7172

7273
// impl - struct
7374
trait T3<Sized? Z> {
7475
}
7576
struct S4<Y>;
76-
impl<Sized? X> T3<X> for S4<X> { //ERROR instantiating a type parameter with an incompatible type `X
77+
impl<Sized? X> T3<X> for S4<X> { //~ ERROR instantiating a type parameter with an incompatible type
7778
}
78-
*/
79+
7980

8081
pub fn main() {
8182
}

0 commit comments

Comments
 (0)