Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
issues
/
issue-22992-2.rs
blob: 042af40eda697df279d4a96ab51004ba29f2131c [
file
] [
log
] [
blame
]
// run-pass
struct
A
(
B
);
struct
B
;
use
std
::
ops
::
Deref
;
impl
Deref
for
A
{
type
Target
=
B
;
fn
deref
(&
self
)
->
&
B
{
&
self
.
0
}
}
impl
B
{
fn
foo
(&
self
)
{}
}
fn
main
()
{
A
(
B
).
foo
();
}