about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-12-03 22:42:41 +0000
committerJosh Stone <jistone@redhat.com>2025-01-23 11:46:15 -0800
commit8cbc8caf0eb5e2bd7ab4637b747645860a6168ac (patch)
treeca90260085e785a925ba382055ba8e59c6578dc8
parente489fc09130262796744451b8675aa084696ac80 (diff)
downloadrust-8cbc8caf0eb5e2bd7ab4637b747645860a6168ac.tar.gz
rust-8cbc8caf0eb5e2bd7ab4637b747645860a6168ac.zip
Add failing test
(cherry picked from commit 3f089971ffd41af9bfe2b362c1952b8e0809de9e)
-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() {}