Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
issues
/
issue-25901.rs
blob: 1f7b341a97efc7d6087c859481cc62b408dd3579 [
file
] [
log
] [
blame
]
struct
A
;
struct
B
;
static
S
:
&
'
static
B
=
&
A
;
//~^ ERROR the trait bound
use
std
::
ops
::
Deref
;
impl
Deref
for
A
{
type
Target
=
B
;
fn
deref
(&
self
)->&
B
{
static
B_
:
B
=
B
;
&
B_
}
}
fn
main
(){}