Closed
Description
The following program causes a compiler error
#[crate_type = "lib"];
trait A<'self, T> { fn f() -> &'self T;}
$ rustc --version
/home/niels/local/src/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc 0.6 (28efc23 2013-03-22 23:09:15 -0700)
$ rustc tests.rs
error: internal compiler error: ty::subst: Reference to self region when given substs with no self region, ty = &'self 'a