summaryrefslogtreecommitdiffstats
path: root/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-74261.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-74261.rs')
-rw-r--r--tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-74261.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-74261.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-74261.rs
deleted file mode 100644
index 93ccb4268..000000000
--- a/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-74261.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-// check-pass
-
-use std::marker::PhantomData;
-
-trait A<'a> {
- type B;
- fn b(self) -> Self::B;
-}
-
-struct T;
-struct S<'a>(PhantomData<&'a ()>);
-
-impl<'a> A<'a> for T {
- type B = S<'a>;
- fn b(self) -> Self::B {
- S(PhantomData)
- }
-}
-
-fn s<TT, F>(t: TT, f: F)
-where
- TT: for<'a> A<'a>,
- F: for<'a> FnOnce(<TT as A<'a>>::B)
-{
- f(t.b());
-}
-
-fn main() {
- s(T, |_| {});
-}