Skip to content

Commit 5e9a2ab

Browse files
committed
Update test for #5543
Closes #5543.
1 parent 3725067 commit 5e9a2ab

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/test/compile-fail/issue-5543.rs

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -8,14 +8,12 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-test
12-
13-
use std::io::ReaderUtil;
14-
use std::io::Reader;
15-
16-
fn bar(r:@ReaderUtil) -> String { r.read_line() }
11+
trait Foo {}
12+
impl Foo for u8 {}
1713

1814
fn main() {
19-
let r : @Reader = io::stdin();
20-
let _m = bar(r as @ReaderUtil);
15+
let r: Box<Foo> = box 5;
16+
let _m: Box<Foo> = r as Box<Foo>;
17+
//~^ ERROR `core::kinds::Sized` is not implemented for the type `Foo`
18+
//~| ERROR `Foo` is not implemented for the type `Foo`
2119
}

0 commit comments

Comments
 (0)