diff options
Diffstat (limited to 'src/test/ui/derives/derive-assoc-type-not-impl.rs')
-rw-r--r-- | src/test/ui/derives/derive-assoc-type-not-impl.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/ui/derives/derive-assoc-type-not-impl.rs b/src/test/ui/derives/derive-assoc-type-not-impl.rs deleted file mode 100644 index 0f642d63a..000000000 --- a/src/test/ui/derives/derive-assoc-type-not-impl.rs +++ /dev/null @@ -1,19 +0,0 @@ -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 -} |