mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
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:
@@ -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;
|
||||
Reference in New Issue
Block a user