1
Fork 0

Add failing test

This commit is contained in:
Michael Goulet 2024-12-03 22:42:41 +00:00
parent 96e51d9482
commit 3f089971ff

View 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() {}