rust/tests/ui/associated-consts/issue-110933.rs
Yuki Okushi 421105b453
Add a regression test for #110933
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-06-25 23:03:22 +09:00

21 lines
296 B
Rust

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