Add a regression test for #110933

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2023-06-25 23:03:22 +09:00
parent 0d03812e24
commit 421105b453
No known key found for this signature in database

View File

@ -0,0 +1,20 @@
// check-pass
#![feature(associated_const_equality)]
pub trait Trait {
const ASSOC: usize;
}
pub fn foo<
T: Trait<
ASSOC = {
let a = 10_usize;
let b: &'_ usize = &a;
*b
},
>,
>() {
}
fn main() {}