summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/resolve-self-in-impl.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/resolve/resolve-self-in-impl.rs
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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() {}