mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +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(); }
|