Skip to content

Commit b64a75f

Browse files
authored
Rollup merge of #107355 - JohnTitor:issue-60755, r=compiler-errors
Add regression test for #60755 Closes #60755 r? compiler-errors Signed-off-by: Yuki Okushi <[email protected]>
2 parents 53ccee0 + dbe911f commit b64a75f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/ui/traits/alias/issue-60755.rs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// check-pass
2+
3+
#![feature(trait_alias)]
4+
5+
struct MyStruct {}
6+
trait MyFn = Fn(&MyStruct);
7+
8+
fn foo(_: impl MyFn) {}
9+
10+
fn main() {
11+
foo(|_| {});
12+
}

0 commit comments

Comments
 (0)