mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-04 05:57:36 +00: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:
commit
b64a75f20b
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…
Reference in New Issue
Block a user