rust/tests/ui/traits/alias/issue-60755.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
145 B
Rust
Raw Normal View History

// check-pass
#![feature(trait_alias)]
struct MyStruct {}
trait MyFn = Fn(&MyStruct);
fn foo(_: impl MyFn) {}
fn main() {
foo(|_| {});
}