Sign in
fuchsia
/
third_party
/
rust
/
a7a6dedfe661a6d9d181afeb0fbaa894fcb7362b
/
.
/
src
/
test
/
ui
/
derives
/
derive-assoc-type-not-impl.rs
blob: 0f642d63a1dcbab9e770b47af785c939d988b7bf [
file
] [
log
] [
blame
]
trait
Foo
{
type
X
;
fn
method
(&
self
)
{}
}
#[
derive
(
Clone
)]
struct
Bar
<
T
:
Foo
>
{
x
:
T
::
X
,
}
struct
NotClone
;
impl
Foo
for
NotClone
{
type
X
=
i8
;
}
fn
main
()
{
Bar
::<
NotClone
>
{
x
:
1
}.
clone
();
//~ ERROR
}