Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
rustdoc-ui
/
deref-recursive-cycle.rs
blob: 4cb518cbbbd5c14fd0057c91a03a71b0ffe0f582 [
file
] [
log
] [
blame
]
// check-pass
// #26207: Ensure `Deref` cycles are properly handled without errors.
#[
derive
(
Copy
,
Clone
)]
struct
S
;
impl
std
::
ops
::
Deref
for
S
{
type
Target
=
S
;
fn
deref
(&
self
)
->
&
S
{
self
}
}
fn
main
()
{
let
s
:
S
=
*******
S
;
}