rust/tests/crashes/133597.rs

12 lines
177 B
Rust

//@ known-bug: #133597
pub trait Foo2 {
fn boxed<'a: 'a>() -> impl Sized + FnOnce<()>;
}
impl Foo2 for () {}
fn f() -> impl FnOnce<()> { || () }
fn main() { () = f(); }