summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/issue-92033.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generic-associated-types/issue-92033.rs')
-rw-r--r--src/test/ui/generic-associated-types/issue-92033.rs37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/test/ui/generic-associated-types/issue-92033.rs b/src/test/ui/generic-associated-types/issue-92033.rs
deleted file mode 100644
index d111580b8..000000000
--- a/src/test/ui/generic-associated-types/issue-92033.rs
+++ /dev/null
@@ -1,37 +0,0 @@
-struct Texture;
-
-trait Surface {
- type TextureIter<'a>: Iterator<Item = &'a Texture>
- where
- Self: 'a;
-
- fn get_texture(&self) -> Self::TextureIter<'_>;
-}
-
-trait Swapchain {
- type Surface<'a>: Surface
- where
- Self: 'a;
-
- fn get_surface(&self) -> Self::Surface<'_>;
-}
-
-impl<'s> Surface for &'s Texture {
- type TextureIter<'a> = std::option::IntoIter<&'a Texture>;
- //~^ ERROR the type
-
- fn get_texture(&self) -> Self::TextureIter<'_> {
- let option: Option<&Texture> = Some(self);
- option.into_iter()
- }
-}
-
-impl Swapchain for Texture {
- type Surface<'a> = &'a Texture;
-
- fn get_surface(&self) -> Self::Surface<'_> {
- self
- }
-}
-
-fn main() {}