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:
commit
b64a75f20b
1 changed files with 12 additions and 0 deletions
12
tests/ui/traits/alias/issue-60755.rs
Normal file
12
tests/ui/traits/alias/issue-60755.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
// check-pass
|
||||
|
||||
#![feature(trait_alias)]
|
||||
|
||||
struct MyStruct {}
|
||||
trait MyFn = Fn(&MyStruct);
|
||||
|
||||
fn foo(_: impl MyFn) {}
|
||||
|
||||
fn main() {
|
||||
foo(|_| {});
|
||||
}
|
Loading…
Add table
Reference in a new issue