Skip to content

Commit 1ee7c29

Browse files
authored
Rollup merge of #89975 - JohnTitor:gats-tests-85921, r=jackh726
Add a regression test for #85921 Closes #85921 r? `@jackh726`
2 parents e0e2b3c + 6bcf0e4 commit 1ee7c29

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// check-pass
2+
3+
#![feature(generic_associated_types)]
4+
5+
trait Trait {
6+
type Assoc<'a>;
7+
8+
fn with_assoc(f: impl FnOnce(Self::Assoc<'_>));
9+
}
10+
11+
impl Trait for () {
12+
type Assoc<'a> = i32;
13+
14+
fn with_assoc(f: impl FnOnce(Self::Assoc<'_>)) {
15+
f(5i32)
16+
}
17+
}
18+
19+
fn main() {}

0 commit comments

Comments
 (0)