Add regression test for #60755

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2023-01-27 19:46:56 +09:00
parent 18890f05f6
commit dbe911ff36
No known key found for this signature in database

View File

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