Skip to content

unresolved lifetime ICE with associated type bounded by 'static #19862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
huonw opened this issue Dec 15, 2014 · 0 comments · Fixed by #19880
Closed

unresolved lifetime ICE with associated type bounded by 'static #19862

huonw opened this issue Dec 15, 2014 · 0 comments · Fixed by #19880
Labels
A-associated-items Area: Associated items (types, constants & functions) A-lifetimes Area: Lifetimes / regions I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@huonw
Copy link
Member

huonw commented Dec 15, 2014

#![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.

@huonw huonw added A-lifetimes Area: Lifetimes / regions I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ A-associated-items Area: Associated items (types, constants & functions) labels Dec 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-associated-items Area: Associated items (types, constants & functions) A-lifetimes Area: Lifetimes / regions I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant