File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
- // Copyright 2013- 2014 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
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 { }
17
13
18
14
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`
21
19
}
You can’t perform that action at this time.
0 commit comments