summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/alias/issue-60755.rs
blob: 6b955a752479f60fca04b9a83a78e91de6c68c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// check-pass

#![feature(trait_alias)]

struct MyStruct {}
trait MyFn = Fn(&MyStruct);

fn foo(_: impl MyFn) {}

fn main() {
    foo(|_| {});
}