2023-12-14 06:11:28 -06:00
|
|
|
// compile-flags: -Znext-solver
|
2023-06-13 17:10:51 -05:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
|
|
|
|
#[rustc_coinductive]
|
|
|
|
trait Trait {}
|
|
|
|
|
|
|
|
#[rustc_coinductive]
|
|
|
|
trait Indirect {}
|
|
|
|
impl<T: Trait + ?Sized> Indirect for T {}
|
|
|
|
|
|
|
|
impl<'a> Trait for &'a () where &'a (): Indirect {}
|
|
|
|
|
|
|
|
fn impls_trait<T: Trait>() {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
impls_trait::<&'static ()>();
|
|
|
|
}
|