Closed
Description
#![feature(associated_types)]
trait Foo { type T: 'static; }
fn main() {}
<anon>:2:21: 2:28 error: internal compiler error: unresolved lifetime
<anon>:2 trait Foo { type T: 'static; }
^~~~~~~
note: the compiler unexpectedly panicked. 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' panicked at 'Box<Any>', /build/rust-git/src/rust/src/libsyntax/diagnostic.rs:129
playpen: application terminated with error code 101
Very similar to #18790 (possibly/probably a dupe), but particularly bad, since 'static
should always be resolvable.