mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
dbe911ff36
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
13 lines
145 B
Rust
13 lines
145 B
Rust
// check-pass
|
|
|
|
#![feature(trait_alias)]
|
|
|
|
struct MyStruct {}
|
|
trait MyFn = Fn(&MyStruct);
|
|
|
|
fn foo(_: impl MyFn) {}
|
|
|
|
fn main() {
|
|
foo(|_| {});
|
|
}
|