mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
12 lines
177 B
Rust
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(); }
|