Add failing test
This commit is contained in:
parent
96e51d9482
commit
3f089971ff
1 changed files with 25 additions and 0 deletions
25
tests/incremental/track-deps-in-new-solver.rs
Normal file
25
tests/incremental/track-deps-in-new-solver.rs
Normal file
|
@ -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() {}
|
Loading…
Add table
Add a link
Reference in a new issue