summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/resolve-self-in-impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/resolve/resolve-self-in-impl.rs')
-rw-r--r--src/test/ui/resolve/resolve-self-in-impl.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/resolve/resolve-self-in-impl.rs b/src/test/ui/resolve/resolve-self-in-impl.rs
deleted file mode 100644
index d0872d1b7..000000000
--- a/src/test/ui/resolve/resolve-self-in-impl.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-#![feature(associated_type_defaults)]
-
-struct S<T = u8>(T);
-trait Tr<T = u8> {
- type A = ();
-}
-
-impl Tr<Self> for S {} // OK
-impl<T: Tr<Self>> Tr<T> for S {} // OK
-impl Tr for S where Self: Copy {} // OK
-impl Tr for S where S<Self>: Copy {} // OK
-impl Tr for S where Self::A: Copy {} // OK
-
-impl Tr for Self {} //~ ERROR `Self` is not valid in the self type of an impl block
-impl Tr for S<Self> {} //~ ERROR `Self` is not valid in the self type of an impl block
-impl Self {} //~ ERROR `Self` is not valid in the self type of an impl block
-impl S<Self> {} //~ ERROR `Self` is not valid in the self type of an impl block
-impl (Self, Self) {} //~ ERROR `Self` is not valid in the self type of an impl block
-impl Tr<Self::A> for S {} //~ ERROR cycle detected
-
-fn main() {}