summaryrefslogtreecommitdiffstats
path: root/tests/ui/chalkify/lower_env1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/chalkify/lower_env1.rs')
-rw-r--r--tests/ui/chalkify/lower_env1.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/chalkify/lower_env1.rs b/tests/ui/chalkify/lower_env1.rs
new file mode 100644
index 000000000..c8762001e
--- /dev/null
+++ b/tests/ui/chalkify/lower_env1.rs
@@ -0,0 +1,14 @@
+// check-pass
+// compile-flags: -Z trait-solver=chalk
+
+#![allow(dead_code)]
+
+trait Foo { }
+
+trait Bar where Self: Foo { }
+
+fn bar<T: Bar + ?Sized>() {
+}
+
+fn main() {
+}