Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-25901.rs
blob: a139ad0d3e3233517f959fc8f371e1d102079264 [
file
] [
log
] [
blame
]
struct
A
;
struct
B
;
static
S
:
&
'
static
B
=
&
A
;
//~^ ERROR calls in statics are limited to constant functions
use
std
::
ops
::
Deref
;
impl
Deref
for
A
{
type
Target
=
B
;
fn
deref
(&
self
)->&
B
{
static
B_
:
B
=
B
;
&
B_
}
}
fn
main
(){}