Sign in
◑
Theme
rust
/
rust
/
3d58b04b2dfc6833cc90988ca4d925fcfa69964f
/
.
/
tests
/
ui
/
issues
/
issue-21174-2.rs
blob: 06f3ceaac350114297b4d87bf8caddf223caa94b [
file
]
//@ check-pass
#![
allow
(
dead_code
)]
#![
allow
(
unused_variables
)]
trait
Trait
<
'
a
>
{
type
A
;
type
B
;
}
fn
foo
<
'a, T: Trait<'
a
>>(
value
:
T
::
A
)
{
let
new
:
T
::
B
=
unsafe
{
std
::
mem
::
transmute_copy
(&
value
)
};
}
fn
main
()
{
}