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 <jtitor@2k36.org>
This commit is contained in:
Matthias Krüger 2023-01-28 11:11:07 +01:00 committed by GitHub
commit b64a75f20b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,12 @@
// check-pass
#![feature(trait_alias)]
struct MyStruct {}
trait MyFn = Fn(&MyStruct);
fn foo(_: impl MyFn) {}
fn main() {
foo(|_| {});
}