about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-07-04 17:36:26 +0000
committerMichael Goulet <michael@errs.io>2023-07-07 16:02:24 +0000
commit010ee7b0e09c0b1eb6ba7bc745693bd19c9d37e4 (patch)
treeb97739579fe3f337b4c0dd6c042ed22662fbc6e7
parentfd68a6ded951bd7b852ab8107007f7145e3ad6ec (diff)
downloadrust-010ee7b0e09c0b1eb6ba7bc745693bd19c9d37e4.tar.gz
rust-010ee7b0e09c0b1eb6ba7bc745693bd19c9d37e4.zip
Remove an AFIT test that isn't an AFIT test
-rw-r--r--tests/ui/async-await/in-trait/async-associated-types2.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/ui/async-await/in-trait/async-associated-types2.rs b/tests/ui/async-await/in-trait/async-associated-types2.rs
deleted file mode 100644
index b889f616a03..00000000000
--- a/tests/ui/async-await/in-trait/async-associated-types2.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-// check-pass
-// edition: 2021
-// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
-// revisions: current next
-
-#![feature(async_fn_in_trait)]
-#![feature(impl_trait_in_assoc_type)]
-#![allow(incomplete_features)]
-
-use std::future::Future;
-
-trait MyTrait {
-    type Fut<'a>: Future<Output = i32>
-    where
-        Self: 'a;
-
-    fn foo<'a>(&'a self) -> Self::Fut<'a>;
-}
-
-impl MyTrait for i32 {
-    type Fut<'a> = impl Future<Output = i32> + 'a
-    where
-        Self: 'a;
-
-    fn foo<'a>(&'a self) -> Self::Fut<'a> {
-        async { *self }
-    }
-}
-
-fn main() {}