mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
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:
@@ -0,0 +1,12 @@
|
||||
// check-pass
|
||||
|
||||
#![feature(trait_alias)]
|
||||
|
||||
struct MyStruct {}
|
||||
trait MyFn = Fn(&MyStruct);
|
||||
|
||||
fn foo(_: impl MyFn) {}
|
||||
|
||||
fn main() {
|
||||
foo(|_| {});
|
||||
}
|
||||
Reference in New Issue
Block a user