Skip to content

Commit

Permalink
Add regression test for #60755
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
JohnTitor committed Jan 27, 2023
1 parent 18890f0 commit dbe911f
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 dbe911f

Please sign in to comment.