mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-25 23:26:08 +00:00
13 lines
146 B
Rust
13 lines
146 B
Rust
//@ check-pass
|
|
|
|
#![feature(trait_alias)]
|
|
|
|
struct MyStruct {}
|
|
trait MyFn = Fn(&MyStruct);
|
|
|
|
fn foo(_: impl MyFn) {}
|
|
|
|
fn main() {
|
|
foo(|_| {});
|
|
}
|