Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
refs/heads/upstream/master
/
.
/
tests
/
crashes
/
124092.rs
blob: c03db384e76ea39930867a845a6f65f8c61fe9d6 [
file
] [
log
] [
blame
]
//@ 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
>;
}