rust/tests/crashes/133597.rs

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

12 lines
177 B
Rust
Raw Normal View History

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