Closed
Description
I wanted to try out the new lifetime resolution in generic associated types merged in #46706.
#![feature(generic_associated_types)]
pub trait Tokenizer {
type TokenIter<'a>: Iterator<Item = &'a str>;
}
The above makes rustc
panic
error: internal compiler error: /checkout/src/librustc/ty/subst.rs:424: Region parameter out of range when substituting in region 'a (root type=Some(&'a str)) (index=1)
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.24.0-nightly (3bee2b44c 2017-12-16) running on x86_64-unknown-linux-gnu
thread 'rustc' panicked at 'Box<Any>', /checkout/src/librustc_errors/lib.rs:449:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
(rustc version above)
Is this expected behaviour for now?
Metadata
Metadata
Assignees
Labels
Area: Generic associated types (GATs)Area: Associated items (types, constants & functions)Area: Lifetimes / regionsCategory: This is a bug.`#![feature(generic_associated_types)]` a.k.a. GATsIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Relevant to the compiler team, which will review and decide on the PR/issue.