Closed
Description
use std::io;
fn f(wr: &mut Writer) {
wr.write_str("hello").ok().expect("failed");
}
fn main() {
let mut wr = box io::stdout() as Box<Writer + 'static>;
f(&mut wr);
}
$ rustc foo.rs
error: internal compiler error: trying to take the sizing type of std::io::Writer, an unsized type
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /home/keegan/rust/src/libsyntax/diagnostic.rs:169
upstream Rust version: 828e075