Skip to content

Commit

Permalink
Rollup merge of #107355 - JohnTitor:issue-60755, r=compiler-errors
Browse files Browse the repository at this point in the history
Add regression test for #60755

Closes #60755
r? compiler-errors
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
matthiaskrgr committed Jan 28, 2023
2 parents d03650e + dbe911f commit d78e09b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/ui/traits/alias/issue-60755.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// check-pass

#![feature(trait_alias)]

struct MyStruct {}
trait MyFn = Fn(&MyStruct);

fn foo(_: impl MyFn) {}

fn main() {
foo(|_| {});
}

0 comments on commit d78e09b

Please sign in to comment.