Skip to content

Commit d7723f4

Browse files
authored
Rollup merge of #113031 - JohnTitor:issue-110933, r=compiler-errors
Add a regression test for #110933 Closes #110933 r? `@compiler-errors`
2 parents dfd6d70 + 421105b commit d7723f4

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)