rust/tests/crashes/131758.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
157 B
Rust
Raw Permalink 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| ());
}