summaryrefslogtreecommitdiffstats
path: root/tests/ui/chalkify/lower_env3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/chalkify/lower_env3.rs')
-rw-r--r--tests/ui/chalkify/lower_env3.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/chalkify/lower_env3.rs b/tests/ui/chalkify/lower_env3.rs
new file mode 100644
index 000000000..5b70c4abb
--- /dev/null
+++ b/tests/ui/chalkify/lower_env3.rs
@@ -0,0 +1,16 @@
+// check-pass
+// compile-flags: -Z trait-solver=chalk
+
+#![allow(dead_code)]
+
+trait Foo {
+ fn foo(&self);
+}
+
+impl<T> Foo for T where T: Clone {
+ fn foo(&self) {
+ }
+}
+
+fn main() {
+}