Skip to content

Commit dbe911f

Browse files
committed
Add regression test for #60755
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
1 parent 18890f0 commit dbe911f

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)