mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 17:14:50 +00:00
18 lines
261 B
Rust
18 lines
261 B
Rust
//@ check-pass
|
|
|
|
#![feature(type_alias_impl_trait)]
|
|
|
|
trait SuperExpectation: Fn(i32) {}
|
|
|
|
impl<T: Fn(i32)> SuperExpectation for T {}
|
|
|
|
type Foo = impl SuperExpectation;
|
|
|
|
fn bop(_: Foo) {
|
|
let _: Foo = |x| {
|
|
let _ = x.to_string();
|
|
};
|
|
}
|
|
|
|
fn main() {}
|