summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/higher-ranked-dyn-bounds.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/new-solver/higher-ranked-dyn-bounds.rs')
-rw-r--r--tests/ui/traits/new-solver/higher-ranked-dyn-bounds.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/ui/traits/new-solver/higher-ranked-dyn-bounds.rs b/tests/ui/traits/new-solver/higher-ranked-dyn-bounds.rs
deleted file mode 100644
index c886aeeda..000000000
--- a/tests/ui/traits/new-solver/higher-ranked-dyn-bounds.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-// compile-flags: -Ztrait-solver=next
-// check-pass
-
-trait Trait<'a> {
- type Item: for<'b> Trait2<'b>;
-}
-
-trait Trait2<'a> {}
-impl Trait2<'_> for () {}
-
-fn needs_trait(_: Box<impl for<'a> Trait<'a> + ?Sized>) {}
-
-fn foo(x: Box<dyn for<'a> Trait<'a, Item = ()>>) {
- needs_trait(x);
-}
-
-fn main() {}