diff options
| author | Michael Goulet <michael@errs.io> | 2024-12-03 22:42:41 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-12-04 16:03:28 +0000 |
| commit | 3f089971ffd41af9bfe2b362c1952b8e0809de9e (patch) | |
| tree | 83e2e727494975cf2aeea246a253cf8158fb14db /tests/incremental | |
| parent | 96e51d9482405e400dec53750f3b263d45784ada (diff) | |
| download | rust-3f089971ffd41af9bfe2b362c1952b8e0809de9e.tar.gz rust-3f089971ffd41af9bfe2b362c1952b8e0809de9e.zip | |
Add failing test
Diffstat (limited to 'tests/incremental')
| -rw-r--r-- | tests/incremental/track-deps-in-new-solver.rs | 25 |
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() {} |
