2022-11-10 13:53:29 -06:00
|
|
|
//@ check-pass
|
|
|
|
|
|
|
|
#![feature(type_alias_impl_trait)]
|
|
|
|
|
|
|
|
trait SuperExpectation: Fn(i32) {}
|
|
|
|
|
|
|
|
impl<T: Fn(i32)> SuperExpectation for T {}
|
|
|
|
|
|
|
|
type Foo = impl SuperExpectation;
|
|
|
|
|
2023-06-15 04:41:14 -05:00
|
|
|
fn bop(_: Foo) {
|
2022-11-10 13:53:29 -06:00
|
|
|
let _: Foo = |x| {
|
|
|
|
let _ = x.to_string();
|
|
|
|
};
|
|
|
|
}
|
2023-06-15 04:41:14 -05:00
|
|
|
|
|
|
|
fn main() {}
|