summary refs log tree commit diff
path: root/tests/incremental/track-deps-in-new-solver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/incremental/track-deps-in-new-solver.rs')
-rw-r--r--tests/incremental/track-deps-in-new-solver.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/incremental/track-deps-in-new-solver.rs b/tests/incremental/track-deps-in-new-solver.rs
new file mode 100644
index 00000000000..fb013b2b24a
--- /dev/null
+++ b/tests/incremental/track-deps-in-new-solver.rs
@@ -0,0 +1,25 @@
+//@ revisions: cfail1 cfail2
+
+//@ compile-flags: -Znext-solver
+//@ check-pass
+
+pub trait Future {
+    type Error;
+    fn poll() -> Self::Error;
+}
+
+struct S;
+impl Future for S {
+    type Error = Error;
+    fn poll() -> Self::Error {
+        todo!()
+    }
+}
+
+#[cfg(cfail1)]
+pub struct Error(());
+
+#[cfg(cfail2)]
+pub struct Error();
+
+fn main() {}