rust/tests/crashes/131758.rs
2024-10-20 10:05:39 +02:00

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| ());
}