mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
12 lines
157 B
Rust
12 lines
157 B
Rust
//@ known-bug: #131758
|
|
#![feature(unboxed_closures)]
|
|
trait Foo {}
|
|
|
|
impl<T: Fn<(i32,)>> Foo for T {}
|
|
|
|
fn baz<T: Foo>(_: T) {}
|
|
|
|
fn main() {
|
|
baz(|x| ());
|
|
}
|