mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
8 lines
233 B
Rust
8 lines
233 B
Rust
//@ known-bug: #124092
|
|
//@ compile-flags: -Zvirtual-function-elimination=true -Clto=true
|
|
//@ only-x86_64
|
|
const X: for<'b> fn(&'b ()) = |&()| ();
|
|
fn main() {
|
|
let dyn_debug = Box::new(X) as Box<fn(&'static ())> as Box<dyn Send>;
|
|
}
|