Skip to content

Commit 421105b

Browse files
committed
Add a regression test for #110933
Signed-off-by: Yuki Okushi <[email protected]>
1 parent 0d03812 commit 421105b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// check-pass
2+
3+
#![feature(associated_const_equality)]
4+
5+
pub trait Trait {
6+
const ASSOC: usize;
7+
}
8+
9+
pub fn foo<
10+
T: Trait<
11+
ASSOC = {
12+
let a = 10_usize;
13+
let b: &'_ usize = &a;
14+
*b
15+
},
16+
>,
17+
>() {
18+
}
19+
20+
fn main() {}

0 commit comments

Comments
 (0)