Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
dyn-keyword
/
auxiliary
/
aux-8401.rs
blob: 7d0eb5cd8762e7e465ce60ab33f3b72d3608ae0d [
file
] [
log
] [
blame
]
// for this issue, this code must be built in a library
use
std
::
mem
;
trait
A
{
fn
dummy
(&
self
)
{
}
}
struct
B
;
impl
A
for
B
{}
fn
bar
<
T
>(
_
:
&
mut
dyn A
,
_
:
&
T
)
{}
fn
foo
<
T
>(
t
:
&
T
)
{
let
mut
b
=
B
;
bar
(&
mut
b
as
&
mut
dyn A
,
t
)
}