Rollup merge of #154355 - aerooneqq:const-types-ices, r=petrochenkov

delegation: add const type ICE test

This PR adds test for rust-lang/rust#154334 which was fixed by rust-lang/rust#154142. Fixes rust-lang/rust#154334. Part of rust-lang/rust#118212.

r? @petrochenkov
This commit is contained in:
Jonathan Brouwer
2026-03-25 19:53:01 +01:00
committed by GitHub
@@ -0,0 +1,11 @@
//@ check-pass
//@ compile-flags: --crate-type=lib
#![feature(min_generic_const_args)]
#![feature(fn_delegation)]
#![feature(adt_const_params)]
#![feature(unsized_const_params)]
trait Trait<'a, T, const N: str> {
fn foo<'v, A, B>(&self) {}
}
reuse Trait::foo;