Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
mir
/
mir_static_subtype.rs
blob: d471b8f149d8a4e2aaa19d6c45c308c763ad4878 [
file
] [
log
] [
blame
]
// run-pass
// Test that subtyping the body of a static doesn't cause an ICE.
fn
foo
(
_
:
&())
{}
static
X
:
fn
(&
'
static
())
=
foo
;
fn
main
()
{
let
_
=
X
;
}