ICE when passing slice with const eval length to method #54038
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-const-eval
Area: Constant evaluation (MIR interpretation)
A-typesystem
Area: The type system
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected a successful compile, however rustc panicked.
Without the lifetime annotation (only
struct Foo;
) the panic does not happen and it compiles successfully.Meta
rust version: rustc 1.28.0 (9634041 2018-07-30) running on x86_64-unknown-linux-gnu
playground link: https://play.rust-lang.org/?gist=4f897c3fc9de85f853b16cc0a8c2b562&version=stable&mode=debug&edition=2015
Backtrace:
The text was updated successfully, but these errors were encountered: