mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +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>;
|
|
}
|