mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
17 lines
259 B
Rust
17 lines
259 B
Rust
//@ check-pass
|
|
|
|
#![feature(unboxed_closures)]
|
|
|
|
trait Lt<'a> {
|
|
type T;
|
|
}
|
|
impl<'a> Lt<'a> for () {
|
|
type T = ();
|
|
}
|
|
|
|
fn main() {
|
|
let v: <() as Lt<'_>>::T = ();
|
|
let f: &mut dyn FnMut<(_,), Output = ()> = &mut |_: <() as Lt<'_>>::T| {};
|
|
f(v);
|
|
}
|