Closed
Description
The compiler hangs on:
#![feature(generic_const_exprs)]
#![feature(adt_const_params)]
#![allow(incomplete_features)]
#![allow(dead_code)]
#[derive(PartialEq, Eq)]
struct U;
struct S<const N: U>()
where
S<{ U }>:;
fn main() {}
Version
rustc 1.66.0-nightly (0da281b60 2022-10-27)
binary: rustc
commit-hash: 0da281b6068a7d889ae89a9bd8991284cc9b7535
commit-date: 2022-10-27
host: x86_64-apple-darwin
release: 1.66.0-nightly
LLVM version: 15.0.2
Regression
searched nightlies: from nightly-2022-06-16 to nightly-2022-10-28
regressed nightly: nightly-2022-06-30
searched commit range: 8308806...ddcbba0
regressed commit: 116edb6 (#98542)
@rustbot label +A-const-generics +F-generic_const_exprs +I-hang +T-compiler
Metadata
Metadata
Assignees
Labels
Area: const generics (parameters and arguments)Category: This is a bug.`#![feature(adt_const_params)]``#![feature(generic_const_exprs)]`Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.Relevant to the compiler team, which will review and decide on the PR/issue.This issue requires the use of incomplete features.This issue requires a nightly compiler in some way.