mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 23:00:46 +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(); }
|