Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please move+rename this file to tests/ui/const-generics/associated-const-bindings/normalization-via-param-env.rs? Thanks in advance!

See #150975 (comment) for context.

Copy link
Contributor Author

@vsriramv vsriramv Jan 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok!

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//@ check-pass
#![feature(min_generic_const_args)]
#![allow(incomplete_features)]

// Regression test for normalizing const projections
// with associated const equality bounds.

trait Trait {
#[type_const]
const C: usize;
}

fn f<T: Trait<C = 1>>() {
// This must normalize <T as Trait>::C to 1
let _: [(); T::C] = [()];
}

fn main() {}
Loading