summaryrefslogtreecommitdiffstats
path: root/tests/ui/chalkify/lower_env2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/chalkify/lower_env2.rs')
-rw-r--r--tests/ui/chalkify/lower_env2.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/chalkify/lower_env2.rs b/tests/ui/chalkify/lower_env2.rs
new file mode 100644
index 000000000..7d4f81f12
--- /dev/null
+++ b/tests/ui/chalkify/lower_env2.rs
@@ -0,0 +1,16 @@
+// check-pass
+// compile-flags: -Z trait-solver=chalk
+
+#![allow(dead_code)]
+
+trait Foo { }
+
+struct S<'a, T: ?Sized> where T: Foo {
+ data: &'a T,
+}
+
+fn bar<T: Foo>(_x: S<'_, T>) { // note that we have an implicit `T: Sized` bound
+}
+
+fn main() {
+}