Skip to content

ICEs with assoc const equality where assoc const comes from supertrait #118040

Closed
@fmease

Description

@fmease

Found while working on fixing #112560. I'm gonna submit a fix for it, too, while I'm already at it.

#![feature(associated_const_equality)]

fn f(_: impl Trait<K = 0i32>) {}

trait Trait: Super {}
trait Super { const K: i32; }

fn main() {}

(stderr incl. backtraces in comments due to GitHub's comment size limit)

Meta

rustc -Vv
rustc 1.76.0-nightly (95a5c59f5 2023-11-18)
binary: rustc
commit-hash: 95a5c59f549e311adbd93e71e70a5163c4345cf6
commit-date: 2023-11-18
host: x86_64-unknown-linux-gnu
release: 1.76.0-nightly
LLVM version: 17.0.5

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.F-associated_const_equality`#![feature(associated_const_equality)]`I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions