Skip to content

Commit

Permalink
Rollup merge of rust-lang#107355 - JohnTitor:issue-60755, r=compiler-…
Browse files Browse the repository at this point in the history
…errors

Add regression test for rust-lang#60755

Closes rust-lang#60755
r? compiler-errors
Signed-off-by: Yuki Okushi <[email protected]>
  • Loading branch information
matthiaskrgr authored Jan 28, 2023
2 parents 53ccee0 + dbe911f commit b64a75f
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 b64a75f

Please sign in to comment.