Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
auxiliary
/
issue-8401.rs
blob: e35dbbfabfcddd93c7ce8dff0abc6d64a2a2fb02 [
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
A
,
_
:
&
T
)
{}
fn
foo
<
T
>(
t
:
&
T
)
{
let
mut
b
=
B
;
bar
(&
mut
b
as
&
mut
A
,
t
)
}