Rollup merge of #113031 - JohnTitor:issue-110933, r=compiler-errors

Add a regression test for #110933

Closes #110933
r? `@compiler-errors`
This commit is contained in:
Matthias Krüger 2023-06-25 22:34:31 +02:00 committed by GitHub
commit d7723f4180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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() {}