rust/tests/crashes/131758.rs

12 lines
157 B
Rust
Raw Normal View History

2024-10-20 03:05:39 -05:00
//@ known-bug: #131758
#![feature(unboxed_closures)]
trait Foo {}
impl<T: Fn<(i32,)>> Foo for T {}
fn baz<T: Foo>(_: T) {}
fn main() {
baz(|x| ());
}