Closed
Description
Code:
extern crate debug;
trait Bar {
fn bar(&self);
}
struct A {
_x: int,
}
struct Outer<Sized? T> {
pub v: T
}
impl Bar for A {
fn bar(&self) {}
}
fn main() {
let a = A { _x: -5 };
let o1: &Outer<Bar> = &Outer { v: a };
println!("{:?}", &o1);
}
Output:
rustc 0.12.0-pre (5550edef4 2014-08-27 06:01:18 +0000)
error: internal compiler error: unexpected failure
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 'Can't reflect unsized type', /home/bs/src/rust/src/librustc/middle/trans/reflect.rs:162
cc @nick29581