mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-19 12:09:27 +00:00
Add failing test
This commit is contained in:
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() {}
|
||||
Reference in New Issue
Block a user