summaryrefslogtreecommitdiffstats
path: root/tests/ui/chalkify/lower_trait_higher_rank.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/chalkify/lower_trait_higher_rank.rs')
-rw-r--r--tests/ui/chalkify/lower_trait_higher_rank.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/chalkify/lower_trait_higher_rank.rs b/tests/ui/chalkify/lower_trait_higher_rank.rs
new file mode 100644
index 000000000..f04a1deea
--- /dev/null
+++ b/tests/ui/chalkify/lower_trait_higher_rank.rs
@@ -0,0 +1,9 @@
+// check-pass
+// compile-flags: -Z trait-solver=chalk
+
+trait Foo<F: ?Sized> where for<'a> F: Fn(&'a (u8, u16)) -> &'a u8
+{
+}
+
+fn main() {
+}