Skip to content

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

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-associated-itemsArea: Associated items (types, constants & functions)A-lifetimesArea: Lifetimes / regionsI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions