parent
37250679bc
commit
5e9a2ab846
1 changed files with 7 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
|
||||
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
|
|
@ -8,14 +8,12 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-test
|
||||
|
||||
use std::io::ReaderUtil;
|
||||
use std::io::Reader;
|
||||
|
||||
fn bar(r:@ReaderUtil) -> String { r.read_line() }
|
||||
trait Foo {}
|
||||
impl Foo for u8 {}
|
||||
|
||||
fn main() {
|
||||
let r : @Reader = io::stdin();
|
||||
let _m = bar(r as @ReaderUtil);
|
||||
let r: Box<Foo> = box 5;
|
||||
let _m: Box<Foo> = r as Box<Foo>;
|
||||
//~^ ERROR `core::kinds::Sized` is not implemented for the type `Foo`
|
||||
//~| ERROR `Foo` is not implemented for the type `Foo`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue